[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 12:47:51 EST 2013
Ryan Nideffer created DROOLS-30:
-----------------------------------
Summary: 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
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