[jboss-jira] [JBoss JIRA] (DROOLS-511) KieContainerImpl.updateResourcesIncrementally throws NullPointerException when a package doesn't exist
Mike Wilson (JIRA)
issues at jboss.org
Mon Jun 2 14:31:16 EDT 2014
[ https://issues.jboss.org/browse/DROOLS-511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Wilson updated DROOLS-511:
-------------------------------
Summary: KieContainerImpl.updateResourcesIncrementally throws NullPointerException when a package doesn't exist (was: KieContainerImpl.updateResourcesIncrementally throws NullPointerException when a pacakge doesn't exist)
> KieContainerImpl.updateResourcesIncrementally throws NullPointerException when a package doesn't exist
> ------------------------------------------------------------------------------------------------------
>
> Key: DROOLS-511
> URL: https://issues.jboss.org/browse/DROOLS-511
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 6.0.0.Final
> Reporter: Mike Wilson
> Assignee: Mark Proctor
>
> When calling KieContainerImpl.updateToVersion(ReleaseId), we sometimes experience a NullPointerException during a chained set of method calls that try to obtain a package, and then a rule within it.
> If the package is null, a NullPointerException is thrown, because there is no check in place before that call to get the rule from the package.
> To prevent this, a null check should be added to the package before trying to get the rule from it.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
More information about the jboss-jira
mailing list