Issue Type: Bug Bug
Affects Versions: 8.2
Assignee: Unassigned
Attachments: testcase.java
Components: geojson
Created: 22/Oct/12 8:52 AM
Description:

Exception in thread "main" java.lang.NullPointerException
at org.geotools.geojson.feature.FeatureHandler.buildFeature(FeatureHandler.java:246)
at org.geotools.geojson.feature.FeatureHandler.endObject(FeatureHandler.java:178)
at org.geotools.geojson.DelegatingHandler.endObject(DelegatingHandler.java:81)
at org.geotools.geojson.feature.FeatureCollectionHandler.endObject(FeatureCollectionHandler.java:121)
at org.json.simple.parser.JSONParser.parse(Unknown Source)
at no.geoikt.gis.png.service.impl.FeatureJSON$FeatureCollectionIterator.readNext(FeatureJSON.java:644)
^- This line is modified to not absorb nullpointer on try/catch
at no.geoikt.gis.png.service.impl.FeatureJSON$FeatureCollectionIterator.hasNext(FeatureJSON.java:631)
at no.geoikt.gis.png.service.impl.FeatureJSON.readFeatureCollection(FeatureJSON.java:318)
at no.geoikt.gis.png.service.impl.BugTest.main(BugTest.java:11)

Crashes at builder.set(featureType.getGeometryDescriptor().getLocalName(), geometry); cause getGeometryDescriptor() does not exist in featureType

Testcase is just a small main which gives nullpointer.

Environment: Ubuntu 12.04 LTS, jdk 1.7.0_06, IntelliJ Idea 11
Project: GeoTools
Priority: Major Major
Reporter: Marius Eggen
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to