Description of problem: When null safe dereferencing is used in second (and later) condition it throws NPE. Version-Release number of selected component (if applicable): Drools 6.0.0.Beta2, Drools 6.0.0-SNAPSHOT (2013-05-31) How reproducible: run NullSafeDereferencingTest as submitted in pull request #203 Steps to Reproduce: 1. run the code Actual results: Null pointer exception caused by mvel optimizer Expected results: Everything runs fine Additional info: The test runs fine if (address != null, address.street == $street) is used. Also it works fine if null safe dereferencing is used in first condition.
Verified in BRMS 6.0.0.ER2