You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2013/02/18 14:43:15 UTC

[jira] [Closed] (SLING-2702) NPE as repository class loader might not have been instantiated

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

Carsten Ziegeler closed SLING-2702.
-----------------------------------

    
> NPE as repository class loader might not have been instantiated
> ---------------------------------------------------------------
>
>                 Key: SLING-2702
>                 URL: https://issues.apache.org/jira/browse/SLING-2702
>             Project: Sling
>          Issue Type: Bug
>          Components: JCR
>    Affects Versions: JCR Classloader 3.1.10
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: JCR Classloader 3.1.12
>
>
> Some methods in the ClassLoaderWriterImpl like delete or close directly access the instance variable repositoryClassLoader which might be still null as the repository class loader might not have been needed before.
> This results in NPEs in some cases
> The methods should not directly access the instance variable but use the getOrCreateClassLoader method.

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