WCS GetCoverage gives a NullPointerException if subset coordinates order is wrong

Description

WCS GetCoverage should report the reason of the failure in the Error text, instead of a generic NullPointerException

To reproduce, invest the Long coordinates so MIN is greater than MAX:

geoserver/ows?service=WCS&version=2.0.1&request=GetCoverage&coverageId=ws1:test&format=application/x-netcdf4&subset=Long(-8,-9)

Environment

None

Status

Assignee

Andrea Aime

Reporter

Gnafu

Triage

Fix versions

None

Affects versions

2.14-RC

Components

Priority

Low
Configure