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

[email protected]
Newsgroups gmane.text.xml.xindice.devel
Message-ID <[email protected]>
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() {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.