You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by vg...@apache.org on 2007/04/12 00:18:08 UTC

svn commit: r527706 - /xml/xindice/trunk/java/src/org/apache/xindice/core/data/Value.java

Author: vgritsenko
Date: Wed Apr 11 15:18:07 2007
New Revision: 527706

URL: http://svn.apache.org/viewvc?view=rev&rev=527706
Log:
prevent possible npe (from bug #42026)

Modified:
    xml/xindice/trunk/java/src/org/apache/xindice/core/data/Value.java

Modified: xml/xindice/trunk/java/src/org/apache/xindice/core/data/Value.java
URL: http://svn.apache.org/viewvc/xml/xindice/trunk/java/src/org/apache/xindice/core/data/Value.java?view=diff&rev=527706&r1=527705&r2=527706
==============================================================================
--- xml/xindice/trunk/java/src/org/apache/xindice/core/data/Value.java (original)
+++ xml/xindice/trunk/java/src/org/apache/xindice/core/data/Value.java Wed Apr 11 15:18:07 2007
@@ -225,7 +225,7 @@
         if (obj instanceof Value) {
             return equals((Value) obj);
         }
-        return equals(new Value(obj.toString()));
+        return obj != null && equals(new Value(obj.toString()));
     }
 
     public int hashCode() {