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/05/21 09:24:01 UTC
[jira] [Resolved] (SLING-4626) NullPointerExceptions in
MockResourceResolver
[ https://issues.apache.org/jira/browse/SLING-4626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Seifert resolved SLING-4626.
-----------------------------------
Resolution: Fixed
Fix Version/s: Testing ResourceResolver Mock 1.1.6
Assignee: Stefan Seifert
Completed: At revision: 1680749
patch applied - thanks!
> NullPointerExceptions in MockResourceResolver
> ---------------------------------------------
>
> Key: SLING-4626
> URL: https://issues.apache.org/jira/browse/SLING-4626
> Project: Sling
> Issue Type: Bug
> Components: Testing
> Affects Versions: Testing ResourceResolver Mock 1.1.4
> Reporter: Joel Richard
> Assignee: Stefan Seifert
> Priority: Minor
> Labels: mocks
> Fix For: Testing ResourceResolver Mock 1.1.6
>
> Attachments: SLING-4626.patch
>
>
> The MockResourceResolver throws an exception when trying to access a resource outside of the root. The normal ResourceResolver implementation returns just null instead.
> Moreover, I get another NullPointerException in MockValueMap#convertForWrite if I try to create a MockResource with null properties (which is for example done in MergedResourceTest).
> Patch is attached.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)