GridCoverageFactory throws NullPointerException on arg described as nullable

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

Environment

None

Status

Assignee

Unassigned

Reporter

Iain Matcham

Triage

None

Fix versions

Affects versions

Priority

Medium
Configure