Uploaded image for project: 'GeoTools'
  1. GEOT-5544

GridCoverageFactory throws NullPointerException on arg described as nullable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 15.1
    • Fix Version/s: 15.3, 16.0
    • Component/s: None
    • Labels:
      None

      Description

      GridCoverageFactory.create(CharSequence,WritableRaster,CoordinateReferenceSystem,MathTransform,GridSampleDimension[])

      For bands javadocs state:

      Sample dimensions for each image band, or

      {@code null}

      for default sample dimensions.

      But the first line of the method references bands[0], thus requiring it to be not-null

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              matchami Iain Matcham
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: