]
Edson Tirelli closed JBRULES-784.
---------------------------------
Fix Version/s: 4.0.0.MR2
Resolution: Done
Problem was fixed together with JBRULES-798. Added integration case anyway.
NPE when left or right hand fact attribute is null
--------------------------------------------------
Key: JBRULES-784
URL:
http://jira.jboss.com/jira/browse/JBRULES-784
Project: JBoss Rules
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Conflict Resolution
Affects Versions: 3.1-m1, 3.0.6
Environment: Windows XP, JBoss 4.0.5, Java 1.5
Reporter: David Nelson
Assigned To: Edson Tirelli
Fix For: 4.0.0.MR2
When a rule is evaluated, if the left or right side of a comparison is null, then the
rule throws a NPE during execution which bubbles to the UI.
Here's the simple scenario:
Class A has a name attribute.
Class B has a name attribute set to "Bob".
when
b : B()
a: A( $name : name, ($name != b.getName()) )
then
System.out.println("This is not an issue!");
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: