[jboss-jira] [JBoss JIRA] (DROOLS-30) NullPointerException calling Row.toString() without calling Row.get() first
Ryan Nideffer (JIRA)
jira-events at lists.jboss.org
Thu Feb 7 13:04:51 EST 2013
[ https://issues.jboss.org/browse/DROOLS-30?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan Nideffer updated DROOLS-30:
--------------------------------
Attachment: DROOLS-30.patch
patch for this issue generated from root of repo with git diff
> 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: Mark Proctor
> 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