|
If you pass a non existent url (eg. http://example.com/ian.random) to DatastoreFinder you end up with a warning:
Nov 16, 2015 5:23:04 PM org.geotools.data.DataAccessFinder getDataStore WARNING: Problem asking Shapefile if it can process request:java.lang.NullPointerException java.lang.NullPointerException at org.geotools.data.shapefile.ShapefileDataStoreFactory.canProcess(ShapefileDataStoreFactory.java:244) at org.geotools.data.DataAccessFinder.getDataStore(DataAccessFinder.java:109) at org.geotools.data.DataStoreFinder.getDataStore(DataStoreFinder.java:89)
Which is annoying, Line 244 of ShapefileDatastoreFactory should check if dir!=null first
|