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

Carsten Ziegeler resolved SLING-2844.
-------------------------------------

    Resolution: Fixed

Added extra null checks in revision 1477492, and added simple tests for 
checking this
                
> ResourceUtil.isA() and findResourceSuperType()  should check for null resource
> ------------------------------------------------------------------------------
>
>                 Key: SLING-2844
>                 URL: https://issues.apache.org/jira/browse/SLING-2844
>             Project: Sling
>          Issue Type: Bug
>          Components: API
>    Affects Versions: API 2.4.0
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: API 2.4.2
>
>
> ResourceUitl.isA() delegates to the resource resolver of the resource however 
> if the resource is null, this results in a NPE
> THe method should first check th resource for null and return false if it is 
> null

--
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

Reply via email to