NullPointerException clearing coverages in NetCDFReader.dispose

Description

NetCDFReader references a coverage list without checking for null, causing the access cleanup portion of dispose() to be skipped (line 696).

Move "coverages.clear()" into the conditional check that coverages is not null.

Environment

None

Status

Assignee

Unassigned

Reporter

Matthew Campbell

Triage

None

Components

Fix versions

Priority

Medium
Configure