[
http://jira.jboss.com/jira/browse/JBRULES-667?page=all ]
Frederic Burlet updated JBRULES-667:
------------------------------------
Attachment: patch_npe_combination_of_conditions.patch
A suggestion of patch. Please validate. At least it works and doesn't make any other
tests to fail.
Combination of Or condition and simple fact fails to evaluate
-------------------------------------------------------------
Key: JBRULES-667
URL:
http://jira.jboss.com/jira/browse/JBRULES-667
Project: JBoss Rules
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 3.1-m1
Environment: Debian Linux Unstable
Java 1.4
Reporter: Frederic Burlet
Assigned To: Mark Proctor
Attachments: conditions-test.tar.gz, patch_npe_combination_of_conditions.patch
When we have a lhs containing a combination of or condition and simple fact like:
.... when
MyBean(property == value_1) or MyBean(property == value_2)
OtherBean( )
then....
The engine throwing a NPE when adding rules.
It also fails with the same error when conditions are written in a different order.
See attached test case in order to reproduce. This has been tested against the trunk
revision #9453.
--
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