svn - r34261 - trunk/modules/library/main/src/main/java/org/geotools/filter

1 message Options
Embed this post
Permalink
svn_geotools

svn - r34261 - trunk/modules/library/main/src/main/java/org/geotools/filter

Reply Threaded More More options
Print post
Permalink
Author: aaime
Date: 2009-10-27 00:35:10 -0400 (Tue, 27 Oct 2009)
New Revision: 34261

Modified:
   trunk/modules/library/main/src/main/java/org/geotools/filter/AttributeExpressionImpl.java
Log:
Null safety in equals

Modified: trunk/modules/library/main/src/main/java/org/geotools/filter/AttributeExpressionImpl.java
===================================================================
--- trunk/modules/library/main/src/main/java/org/geotools/filter/AttributeExpressionImpl.java 2009-10-27 04:34:37 UTC (rev 34260)
+++ trunk/modules/library/main/src/main/java/org/geotools/filter/AttributeExpressionImpl.java 2009-10-27 04:35:10 UTC (rev 34261)
@@ -228,6 +228,9 @@
      * @return true if specified object is equal to this filter; else false
      */
     public boolean equals(Object obj) {
+        if(obj == null)
+            return false;
+        
         if (obj.getClass() == this.getClass()) {
             AttributeExpressionImpl expAttr = (AttributeExpressionImpl) obj;
 


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
GeoTools-commits mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-commits