Details
-
Bug
-
Resolution: Fixed
-
Neutral
-
1.1.1
-
None
Description
The product teaser does not work in Mag 4.5 anymore: The model class throws a NPE when the renderer tries to access the teaser target:
Caused by: java.lang.NullPointerException at info.magnolia.jcr.wrapper.DelegatePropertyWrapper.getType(DelegatePropertyWrapper.java:228) at info.magnolia.jcr.util.ContentMap.getNodeProperty(ContentMap.java:199) at info.magnolia.jcr.util.ContentMap.get(ContentMap.java:174) at info.magnolia.freemarker.models.ContentMapModel.getAsString(ContentMapModel.java:92) at freemarker.core.Expression.isEmpty(Expression.java:161) at freemarker.core.BuiltIn$has_contentBI._getAsTemplateModel(BuiltIn.java:730)
I think the wrapping of the JCR node and then converting to a ContentMap somehow does not work. Property.getType() returns null when the property "@name" is being fetched from the target node.
Checklists
Acceptance criteria