NPE in DefaultHtmlRenderer if resource type not found via include
-----------------------------------------------------------------
Key: SLING-162
URL: https://issues.apache.org/jira/browse/SLING-162
Project: Sling
Issue Type: Bug
Components: microsling
Reporter: Tobias Bocanegra
<% SyntheticResource res = new SyntheticResource(child.getPath(),
"/apps/myapp/test/nav"); %>
<sling:include resource="<%= res %>"/>
this results in a NPE:
Caused by: java.lang.NullPointerException
at
org.apache.sling.usling.renderers.DefaultHtmlRenderer.render(DefaultHtmlRenderer.java:53)
at
org.apache.sling.usling.renderers.DefaultHtmlRendererServlet.doGet(DefaultHtmlRendererServlet.java:72)
at
org.apache.sling.api.servlets.SlingSafeMethodsServlet.mayService(SlingSafeMethodsServlet.java:261)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.