You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2013/04/09 17:02:16 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=13626684#comment-13626684 ] 

Bertrand Delacretaz commented on SLING-2367:
--------------------------------------------

This issue is back in SLING-2819
                
> 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