Uploaded image for project: 'GeoTools'
  1. GeoTools
  2. GEOT-5686

Shapefile dumper throws a NPE on NULL geometry values

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 16.3, 18-beta, 17.1
    • Component/s: shapefile plugin
    • Labels:
      None

      Description

      The Shapefile dumper will throw a NULL pointer exception in the presence of NULL geometries:

      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)
      

      This is was also reported in GeoServer: https://osgeo-org.atlassian.net/browse/GEOS-8031

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                nmco Nuno Oliveira
                Reporter:
                nmco Nuno Oliveira
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: