[Geoserver-devel] [JIRA] (GEOS-8031) SHAPE-ZIP output format goes NPE on null geometry values

Andrea Aime [Administrator] created an issue

GeoServer / BugGEOS-8031

SHAPE-ZIP output format goes NPE on null geometry values

Issue Type:

BugBug

Assignee:

Unassigned

Components:

WFS

Created:

14/Mar/17 10:13 AM

Priority:

MediumMedium

Reporter:

Andrea Aime [Administrator]

This is a regression, the old code used to skip features with empty geometries, in a large refactor around 2.9.x this check disappeared, and it’s now causing:

java.lang.NullPointerException
        at
org.geotools.data.shapefile.ShapefileDumper.getGeometryType(ShapefileDumper.java:380)
        at
org.geotools.data.shapefile.ShapefileDumper.getStoreWriter(ShapefileDumper.java:399)
        at
org.geotools.data.shapefile.ShapefileDumper.dump(ShapefileDumper.java:224)
        at
org.geoserver.wfs.response.ShapeZipOutputFormat.write(ShapeZipOutputFormat.java:225)
        at
org.geoserver.wfs.response.ShapeZipOutputFormat.write(ShapeZipOutputFormat.java:181)
        at
org.geoserver.wfs.WFSGetFeatureOutputFormat.write(WFSGetFeatureOutputFormat.java:196)
        at org.geoserver.ows.Dispatcher.response(Dispatcher.java:1008)
        at
org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:272)
        at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:147)

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.815.2#100035-sha1:5badda0)

Atlassian logo