Red Hat Bugzilla – Bug 969420
Null safe dereferencing throws NPE
Last modified: 2014-08-06 16:16:59 EDT
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)
run NullSafeDereferencingTest as submitted in pull request #203
Steps to Reproduce:
1. run the code
Null pointer exception caused by mvel optimizer
Everything runs fine
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