NPE thrown when configuring a shapefile with no .prj information
----------------------------------------------------------------
Key: GEOS-1657
URL: http://jira.codehaus.org/browse/GEOS-1657
Project: GeoServer
Issue Type: Bug
Components: Configuration
Affects Versions: 1.6.0-RC2
Reporter: Andrea Aime
Assignee: Andrea Aime
Fix For: 1.6.0, 1.7.0-beta1
When trying to configure a shapefile with no .prj file attache the following exception occurs:
2008-01-08 16:26:17.140::WARN: /geoserver/config/data/storeSubmit.do
java.lang.NullPointerException
at org.geotools.referencing.CRS.lookupIdentifier(CRS.java:808)
at org.geotools.referencing.CRS.lookupEpsgCode(CRS.java:833)
at org.vfny.geoserver.config.FeatureTypeConfig.lookupSRS(FeatureTypeConfig.java:253)
at org.vfny.geoserver.config.FeatureTypeConfig.<init>(FeatureTypeConfig.java:203)
at org.vfny.geoserver.action.data.DataDataStoresEditorAction.execute(DataDataStoresEditorAction.java:197)
at org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:101)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira