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:18:00 UTC

[jira] [Updated] (SLING-4626) NullPointerExceptions in MockResourceResolver

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

Stefan Seifert updated SLING-4626:
----------------------------------
    Labels: mocks  (was: )

> 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
>            Priority: Minor
>              Labels: mocks
>         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)