Bug 724655 (BRMS-558)

Summary: NPE in AbstractCompositeRestriction when using unbound variables
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Toshiya Kobayashi <tkobayas>
Component: BRE (Expert, Fusion)Assignee: Nobody <nobody>
Status: CLOSED UPSTREAM QA Contact: Marek Baluch <mbaluch>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.1.0 GACC: maarten.daalder, trikkola
Target Milestone: ---   
Target Release: BRMS 5.2.0.GA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/BRMS-558
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
A NullPointerException was occurring in AbstractCompositeRestriction when using unbound variables as a side effect of missing import statements.
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:13:57 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 Toshiya Kobayashi 2011-03-01 05:27:07 UTC
Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A0000004ReCC&sfdc.override=1
securitylevel_name: Public

Platform JIRA for [JBRULES-2872] NPE in AbstractCompositeRestriction when using unbound variables

Comment 1 Toshiya Kobayashi 2011-03-01 05:27:57 UTC
Link: Added: This issue incorporates JBRULES-2872


Comment 2 Anne-Louise Tangring 2011-05-31 19:13:42 UTC
Triaged by the BRMS PM team for 5.2.

Comment 3 Edson Tirelli 2011-08-19 17:51:48 UTC
As per comments on JBRULES-2872, I was unable to reproduce the NPE, but fixed line numbers on error messages.

Commit:

https://github.com/droolsjbpm/drools/commit/0c025c90adb0751bdb7622faa2ed9c82190ba587

Comment 4 Jiri Svitak 2011-08-29 11:31:24 UTC
I was able to reproduce NPE in BRMS 5.1.0 with following code:

package com.sample
import org.drools.verifier.components.NumberRestriction
rule "x"
when
    NumberRestriction( valueType == Field.INT || == Field.DOUBLE )
then
end

I have tested it in BRMS 5.2.0 ER3 and it is fixed.

Comment 5 lcarlon 2011-08-30 04:00:26 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
https://bugzilla.redhat.com/show_bug.cgi?id=724655

A NullPointerException was occurring in AbstractCompositeRestriction when using unbound variables were used, however this was a side effect of missing import statements. The bug has been corrected and no longer presents.

Comment 6 lcarlon 2011-09-14 04:28:42 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,3 +1 @@
-https://bugzilla.redhat.com/show_bug.cgi?id=724655
-
 A NullPointerException was occurring in AbstractCompositeRestriction when using unbound variables were used, however this was a side effect of missing import statements. The bug has been corrected and no longer presents.

Comment 7 lcarlon 2011-10-10 03:15:51 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-A NullPointerException was occurring in AbstractCompositeRestriction when using unbound variables were used, however this was a side effect of missing import statements. The bug has been corrected and no longer presents.+A NullPointerException was occurring in AbstractCompositeRestriction when using unbound variables as a side effect of missing import statements.

Comment 11 Red Hat Bugzilla 2025-02-10 03:13:57 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.