Steven Walters created SLING-4376:
-------------------------------------
Summary: 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
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)