Hi

I am using 2.6.x branch from svn. Yesterday i used a different dataset with my 
application and now i get a strange NPEs while asking isEmpty() on an empty  
FeatureCollection coming from a Layer that has a Filter set:

java.lang.NullPointerException
        at 
com.vividsolutions.jts.geom.Envelope.intersection(Envelope.java:505)
        at 
org.geotools.filter.visitor.ExtractBoundsFilterVisitor.visit(ExtractBoundsFilterVisitor.java:189)
        at org.geotools.filter.AndImpl.accept(AndImpl.java:63)
        at 
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getAttributesReader(IndexedShapefileDataStore.java:420)
        at 
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getFeatureReader(IndexedShapefileDataStore.java:325)
        at 
org.geotools.data.AbstractDataStore.getFeatureReader(AbstractDataStore.java:385)
        at 
org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:210)
        at 
org.geotools.data.store.DataFeatureCollection.isEmpty(DataFeatureCollection.java:303)

NOT (ATTNAME = '')

After removing the filter i get no Exception. 

Any ideas?  

Thanks, 
Steve

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to