Bug 969420

Summary: Null safe dereferencing throws NPE
Product: [Retired] JBoss BRMS Platform 6 Reporter: Tomas Schlosser <tschloss>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas Schlosser <tschloss>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: mfusco, rzhang
Target Milestone: ER2   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:16:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tomas Schlosser 2013-05-31 11:45:16 UTC
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.

Comment 1 Tomas Schlosser 2013-09-02 14:46:44 UTC
Verified in BRMS 6.0.0.ER2