Making a WMS request with no Layers results in an IndexOutOfBoundsException

Description

The WMS response is:

With the corresponding exception:

It would be much better to use a service exception here, similar to what is done when layers are excluded due to security:

Environment

None

Status

Assignee

Torben Barsballe

Reporter

Torben Barsballe

Triage

Fix versions

Affects versions

None

Priority

Medium
Configure