Uploaded image for project: 'GeoServer'
  1. GeoServer
  2. GEOS-8031

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.9.4, 2.10.2, 2.11-RC1
    • Fix Version/s: 2.10.3, 2.12-beta, 2.11.1
    • Component/s: WFS
    • Labels:
      None

      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:

      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)
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                nmco Nuno Oliveira
                Reporter:
                aaime Andrea Aime
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: