You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Seifert (JIRA)" <ji...@apache.org> on 2015/02/26 12:45:04 UTC
[jira] [Closed] (SLING-4376) ResourceResolver-mock throws
NullPointerException in resolve when absPath = null
[ https://issues.apache.org/jira/browse/SLING-4376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Seifert closed SLING-4376.
---------------------------------
Assignee: (was: Stefan Seifert)
> ResourceResolver-mock throws NullPointerException in resolve when absPath = null
> --------------------------------------------------------------------------------
>
> Key: SLING-4376
> URL: https://issues.apache.org/jira/browse/SLING-4376
> Project: Sling
> Issue Type: Bug
> Components: Testing
> Affects Versions: Testing ResourceResolver Mock 1.1.2
> Reporter: Steven Walters
> Labels: test
> Fix For: Testing ResourceResolver Mock 1.1.4
>
>
> According to the ResolverResolver API for the resolve function:
> {quote}
> absPath The absolute path to be resolved to a resource. If this
> * parameter is <code>null</code>, it is assumed to address the
> * root of the resource tree. If the path is relative it is
> * assumed relative to the root, that is a slash is prepended to
> * the path before resolving it.
> {quote}
> However, in the MockResourceResolver, this scenario is not actually handled and instead throws a {{NullPointerException}} when attempting to look for indexes of the characters {{?}} or {{#}} in the path string
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)