StreamingRenderer MergeLayersRequest does not execute if one of the layers has a null image

Description

It happens here:

https://github.com/geotools/geotools/blob/master/modules/library/render/src/main/java/org/geotools/renderer/lite/StreamingRenderer.java#L3308

When this happens, compositing is skipped. There are cases where this is a bug (e.g. composite destination-in where the destination is used to mask the source, if the destination is empty, the final image should be empty too, but due to this code, the source is untouched.

Possible solution is creating an empty image when the original image is null:

Environment

None

Assignee

Unassigned

Reporter

Mauro Bartolomeoli

Triage

Components

Fix versions

Affects versions

Priority

Medium
Configure