MockAsset.removeRendition can throw NPE

Description

In MockAsset.removeRendition a NPE can occur if a non-existing rendition is removed, see (1). In that case rendition is null and thus a NPE is thrown at line 226.

(1) https://github.com/wcm-io/wcm-io-testing/blob/319bea35d3a7bcb253012b23044f987053f79ec3/aem-mock/core/src/main/java/io/wcm/testing/mock/aem/dam/MockAsset.java#L211

Assignee

Stefan Seifert

Reporter

Jörg Hoh

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure