]
Ahti Kitsik reassigned JBRULES-523:
-----------------------------------
Assignee: Ahti Kitsik (was: Mark Proctor)
JoinNode and NotNode with empty binder throw exception with
getConstraints()
----------------------------------------------------------------------------
Key: JBRULES-523
URL:
http://jira.jboss.com/jira/browse/JBRULES-523
Project: JBoss Rules
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Reteoo
Affects Versions: 3.1-m3
Reporter: Ahti Kitsik
Assigned To: Ahti Kitsik
Original Estimate: 15 minutes
Remaining Estimate: 15 minutes
Currently it is not possible to check if binder is null or not and getConstraints throws
NPE if it is.
Simple sanity check in getContraints would fix it (will be fixed in 3.0.x branch).
Sample for reproducing
final JoinNode joinNode = new JoinNode( 1,
this.tupleSource,
this.objectSource, null);
joinNode.getConstraints(); // Throws NPE
final NotNode notNode = new NotNode( 1,
this.tupleSource,
this.objectSource, null);
notNode.getConstraints(); // throws NPE
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: