Details
-
Bug
-
Resolution: Won't Do
-
Neutral
-
None
-
5.4.2
-
None
-
None
Description
When an optional area is rendered there is no content node. When there's an error during rendering the exception ends up in ModeDependentRenderExceptionHandler where it tries to create an informational message including the node that was rendered. This fails due to an NPE. The original exception is never logged.
Caused by: java.lang.NullPointerException at info.magnolia.rendering.engine.ModeDependentRenderExceptionHandler.handleException(ModeDependentRenderExceptionHandler.java:78) at info.magnolia.rendering.context.AggregationStateBasedRenderingContext.handleException(AggregationStateBasedRenderingContext.java:220) at info.magnolia.rendering.engine.DefaultRenderingEngine.render(DefaultRenderingEngine.java:120) at info.magnolia.rendering.engine.DefaultRenderingEngine$$EnhancerByCGLIB$$88a4d454.render(<generated>) at info.magnolia.templating.elements.AreaElement.end(AreaElement.java:330) ... 134 more
A workaround for finding out what the original exception was one can use exception breakpoints while debugging.
Checklists
Acceptance criteria