You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2012/09/24 18:50:07 UTC

[jira] [Closed] (SLING-2367) JcrResourceResolver.map(" ") throws NPE with unintuitive stack trace

     [ https://issues.apache.org/jira/browse/SLING-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler closed SLING-2367.
-----------------------------------

    
> JcrResourceResolver.map(" ") throws NPE with unintuitive stack trace
> --------------------------------------------------------------------
>
>                 Key: SLING-2367
>                 URL: https://issues.apache.org/jira/browse/SLING-2367
>             Project: Sling
>          Issue Type: Improvement
>          Components: JCR
>            Reporter: Justin Edelson
>            Priority: Minor
>             Fix For: JCR Resource 2.1.0
>
>
> Stack trace is currently java.lang.NullPointerException
> 	at org.apache.sling.jcr.resource.internal.JcrResourceResolver.mangleNamespaces(JcrResourceResolver.java:1290)
> 	at org.apache.sling.jcr.resource.internal.JcrResourceResolver.map(JcrResourceResolver.java:756)
> 	at org.apache.sling.jcr.resource.internal.JcrResourceResolver.map(JcrResourceResolver.java:545)
> when " " is passed to map().
> This should be either an IllegalArgumentException with a descriptive message OR return the root node (to be consistent with mapping "")

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira