MockAssetManager.create() cannot handle null inputstream

Description

According to the javadoc AssetManager.create() allows null inputstream as argument. Passing null MockAssetManager results in an NPE.

Activity

Show:
Stefan Seifert
July 15, 2019, 6:41 PM

you're right - also it's possible to use the create method to update existing assets.
both use cases are supported in AEM Mocks 2.5.4

https://github.com/wcm-io/wcm-io-testing/commit/9f1ed77b63ebf97b73bfd7ed6872367e7e197942

Fixed

Assignee

Stefan Seifert

Reporter

Kristof Vanbecelaere

Labels

None

Components

Fix versions

Affects versions

Priority

Major