You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2008/01/16 09:43:35 UTC

[jira] Created: (SLING-162) NPE in DefaultHtmlRenderer if resource type not found via include

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.


[jira] Closed: (SLING-162) NPE in DefaultHtmlRenderer if resource type not found via include

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger closed SLING-162.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0
         Assignee: Felix Meschberger

I assume this as been fixed as a side effect to other fixes/changes. Therefore closing this issue.

> 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
>            Assignee: Felix Meschberger
>             Fix For: 2.0.0
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> <% 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.


[jira] Updated: (SLING-162) NPE in DefaultHtmlRenderer if resource type not found via include

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler updated SLING-162:
-----------------------------------

    Remaining Estimate: 0h
     Original Estimate: 0h

Is this bug still valid?

> 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
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> <% 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.