We're updating the issue view to help you get more done. 

Regression: SHAPE-ZIP output format goes NPE on null geometry values

Description

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:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 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)

Environment

None

Status

Assignee

Nuno Oliveira

Reporter

Andrea Aime

Triage

Fix versions

Affects versions

2.11-RC1
2.9.4
2.10.2

Components

Priority

Medium