Philipp Marx created SLING-3522:
-----------------------------------

             Summary: NPE on startup in ChangeStateTask.getSortKey
                 Key: SLING-3522
                 URL: https://issues.apache.org/jira/browse/SLING-3522
             Project: Sling
          Issue Type: Bug
          Components: Installer
    Affects Versions: Installer Configuration Factory 1.0.10
            Reporter: Philipp Marx


ChangeStateTask.getSortKey will internally call getResource().getEntityId(), 
whereas getResource() might return null.

I tracked this down on my system to be a concurrency issue where the 
ResourceState of the task is being updated from UNINSTALL to INSTALLED by an 
update event. Since the state is now INSTALLED getResource() will return null 
since it is checking for resource in state UNINSTALL oder INSTALL.





--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to