NPE in MCRClassificationMappingEventHandler, if MCRObject with no mods metadata ist handled

Description

java.lang.NullPointerException
at org.mycore.mods.MCRMODSWrapper.getMODS(MCRMODSWrapper.java:111)
at org.mycore.mods.MCRMODSWrapper.getElements(MCRMODSWrapper.java:157)
at org.mycore.mods.classification.MCRClassificationMappingEventHandler.createMapping(MCRClassificationMappingEventHandler.java:84)
at org.mycore.mods.classification.MCRClassificationMappingEventHandler.handleObjectCreated(MCRClassificationMappingEventHandler.java:64)
at org.mycore.common.events.MCREventHandlerBase.doHandleEvent(MCREventHandlerBase.java:61)

Environment

None

Assignee

Thomas Scheffler

Reporter

Robert Stephan

Labels

None

URL

None

External issue ID

None

Components

Fix versions

Affects versions

Priority

Medium
Configure