You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by mb...@apache.org on 2007/01/10 19:48:59 UTC
svn commit: r494925 -
/jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ClassFunctions.java
Author: mbenson
Date: Wed Jan 10 10:48:58 2007
New Revision: 494925
URL: http://svn.apache.org/viewvc?view=rev&rev=494925
Log:
[JXPATH-38] ClassFunctions throws NPE searching for a function in null ns
Modified:
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ClassFunctions.java
Modified: jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ClassFunctions.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ClassFunctions.java?view=diff&rev=494925&r1=494924&r2=494925
==============================================================================
--- jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ClassFunctions.java (original)
+++ jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ClassFunctions.java Wed Jan 10 10:48:58 2007
@@ -86,7 +86,11 @@
String name,
Object[] parameters)
{
- if (!namespace.equals(this.namespace)) {
+ if (namespace == null) {
+ if (this.namespace != null) {
+ return null;
+ }
+ } else if (!namespace.equals(this.namespace)) {
return null;
}
@@ -117,4 +121,4 @@
return null;
}
-}
\ No newline at end of file
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org