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

When creating a sub type non matching properties map to a NULL attribute descriptor

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 15.3, 16.1, 17-beta
    • Component/s: main
    • Labels:
      None

      Description

      When creating a sub type using DataUtilies if one of the provided properties doesn't map to an attribute descriptor a NULL attribute descriptor will be added to the new sub type attributes descriptors:
      https://github.com/geotools/geotools/blob/master/modules/library/main/src/main/java/org/geotools/data/DataUtilities.java#L1868-L1870

      Since the typical code assumes that the attributes descriptors of a feature type are not NULL this may provoke a NULL pointer exception. A situation like this is reported by this issue:
      https://osgeo-org.atlassian.net/projects/GEOS/issues/GEOS-7524?filter=myopenissues

        Attachments

          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: