commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skitch...@apache.org
Subject svn commit: r155162 - jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/Declaration.java
Date Thu, 24 Feb 2005 04:09:45 GMT
Author: skitching
Date: Wed Feb 23 20:09:43 2005
New Revision: 155162

URL: http://svn.apache.org/viewcvs?view=rev&rev=155162
Log:
Handle ruleLoader==null, which is possible.

Modified:
    jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/Declaration.java

Modified: jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/Declaration.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/Declaration.java?view=diff&r1=155161&r2=155162
==============================================================================
--- jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/Declaration.java
(original)
+++ jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/Declaration.java
Wed Feb 23 20:09:43 2005
@@ -232,6 +232,13 @@
             log.debug("configure being called!");
         }
 
-        ruleLoader.addRules(context);
+        if (ruleLoader != null) {
+            // The ruleloader can be null if findLoader returned null, ie
+            // none of the registered RuleFinder objects could locate a
+            // source of custom rules for the specified class. This
+            // probably indicates that something is wrong: maybe we should
+            // log a warning here?
+            ruleLoader.addRules(context);
+        }
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message