]
Mario Fusco reassigned DROOLS-30:
---------------------------------
Assignee: Mario Fusco (was: Mark Proctor)
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
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: