[jboss-jira] [JBoss JIRA] Updated: (JBRULES-2460) JPAWorkItemManager.internalAbortWorkItem fails with NPE

Mark Proctor (JIRA) jira-events at lists.jboss.org
Sat Apr 3 22:42:38 EDT 2010


     [ https://jira.jboss.org/jira/browse/JBRULES-2460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Proctor updated JBRULES-2460:
----------------------------------

    Fix Version/s: 5.1.0.M2
         Assignee: Kris Verlaenen  (was: Mark Proctor)


> JPAWorkItemManager.internalAbortWorkItem fails with NPE
> -------------------------------------------------------
>
>                 Key: JBRULES-2460
>                 URL: https://jira.jboss.org/jira/browse/JBRULES-2460
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler (flow), drools-core (flow)
>    Affects Versions: 5.0.1.FINAL
>         Environment: Windows Vista 64-bit, Eclipse Galileo, Java 1.6.0_17
>            Reporter: hoogenbj
>            Assignee: Kris Verlaenen
>             Fix For: 5.1.0.M2
>
>
> The NullPointerException occurs at line 63 of JPAWorkItemManager and can only be because workItems is null at that point. Which I think is to be expected as an existing session was loaded from the database in order to abort a process instance and the workItems property is transient. There shouldn't even be a workItems property in this class. At least the remove should be guarded with if (workItems != null) as it is done elsewhere in the same class.
> Regards,
> Johan

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list