[jboss-jira] [JBoss JIRA] (DROOLS-30) NullPointerException calling Row.toString() without calling Row.get() first
Mario Fusco (JIRA)
jira-events at lists.jboss.org
Wed Feb 13 04:48:56 EST 2013
[ https://issues.jboss.org/browse/DROOLS-30?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Fusco resolved DROOLS-30.
-------------------------------
Fix Version/s: 5.6
6.0.0.Alpha1
Resolution: Done
> NullPointerException calling Row.toString() without calling Row.get() first
> ---------------------------------------------------------------------------
>
> Key: DROOLS-30
> URL: https://issues.jboss.org/browse/DROOLS-30
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 5.5
> Reporter: Ryan Nideffer
> Assignee: Mario Fusco
> Fix For: 5.6, 6.0.0.Alpha1
>
> Attachments: DROOLS-30.patch
>
>
> The object passed to methods of a ViewChangedEventListener that is registered when opening a live query is an instance of org.drools.runtime.rule.impl.RowAdapter and its toString() method throws a NullPointerException if you do not first call get(). This is because toString() assumes the member variable 'factHandles' has been populated, whereas all other accessor methods such as get() first null-check 'factHandles', and if null sets it to the value of this.leftTuples.toFactHandles().
> toString in this case should perform the same populating of factHandles, or at the very least perform a null-check of factHandles so that an exception is not thrown.
--
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
More information about the jboss-jira
mailing list