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: Mark Proctor
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:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira