Bug 969420 - Null safe dereferencing throws NPE
Summary: Null safe dereferencing throws NPE
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER2
: 6.0.0
Assignee: Mario Fusco
QA Contact: Tomas Schlosser
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-31 11:45 UTC by Tomas Schlosser
Modified: 2014-08-06 20:16 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:16:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.