[jboss-jira] [JBoss JIRA] Updated: (JBRULES-2232) NullPointerException using drools-persistance-jpa and Drools Flows (WorkItemInfo)

Noel Keating (JIRA) jira-events at lists.jboss.org
Fri Aug 7 07:15:29 EDT 2009


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

Noel Keating updated JBRULES-2232:
----------------------------------

    Attachment: JBRULES-2232-patch.txt


> NullPointerException using drools-persistance-jpa and Drools Flows (WorkItemInfo)
> ---------------------------------------------------------------------------------
>
>                 Key: JBRULES-2232
>                 URL: https://jira.jboss.org/jira/browse/JBRULES-2232
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-core
>    Affects Versions: 5.1.0.M1
>            Reporter: Noel Keating
>            Assignee: Mark Proctor
>         Attachments: JBRULES-2232-patch.txt
>
>
> I'm getting a NPE exception when using drools-persistence-jpa with Drools Flow (I'm working with the trunk version 28274).  It occurs in MarshallerReaderContext and seems to be a result of JBRULES-2149.  When loading a WorkItemInfo from the database a MarshallerReaderContext is created without the ruleBase set, however the MarshallerReaderContext expects the ruleBase to be set.
> In the attached patch I have added a null check and call the super method if it is not set.  This seems to be working correctly and would have been the behaviour before JBRULES-2149.

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