Details
-
Bug
-
Resolution: Won't Do
-
Neutral
-
None
-
4.5.7
Description
To follow the contract of Node.getProperty() it must not return null. When it does this leads to a NPE.
Here's a stacktrace for attempting to find a missing mgnl:template property.
Caused by: java.lang.NullPointerException
at info.magnolia.jcr.wrapper.DelegatePropertyWrapper.getString(DelegatePropertyWrapper.java:163)
at info.magnolia.cms.core.MetaData.getStringProperty(MetaData.java:408)
at info.magnolia.cms.core.MetaData.getTemplate(MetaData.java:322)
In 4.5 the call ends up in info.magnolia.cms.core.NonExistingNodeData#getJCRProperty() which always returns null.
In 5.0 i believe this doesn't happen because info.magnolia.cms.i18n.AbstractI18nContentSupport#getProperty doesn't seem to ever return null. Please double-check to make sure.
Checklists
Acceptance criteria