Bug 1191737 - NPE when used a bind variable of a pattern using the clause "from" in a next pattern, also using "from"
Summary: NPE when used a bind variable of a pattern using the clause "from" in a next ...
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ER6
: 6.1.0
Assignee: manstis
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-11 20:49 UTC by Alessandro Lazarotti
Modified: 2020-03-27 20:02 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 20:02:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
model.jar (2.34 KB, application/zip)
2015-02-11 20:49 UTC, Alessandro Lazarotti
no flags Details
kidRule.rdrl (322 bytes, text/x-csrc)
2015-02-11 21:10 UTC, Alessandro Lazarotti
no flags Details

Description Alessandro Lazarotti 2015-02-11 20:49:15 UTC
Created attachment 990634 [details]
model.jar

Rules like this bellow generated NPE when business-central is parsing it:

rule "ToyWithoutName "

dialect "java"
	when
		$father: Father()
		$kid: Kid() from $father.kids
		$toy: Toy(name == null) from $kid.toys
		

	then 
		System.out.println("blabla");
end



Version-Release number of selected component (if applicable):
6.0.3


How reproducible:


Steps to Reproduce:
1. add as dependency the attached jar in a project
2. push the attach role to the git repository where the project is
3. click on Project Authoring - business-central will try to parse the rule for verification and will generated the exception (actually hidden by the GenericPortableException )

Actual results:
GenericPortableException

Expected results:
No exception, the rule should be opened

Comment 2 Alessandro Lazarotti 2015-02-11 21:10:57 UTC
Created attachment 990648 [details]
kidRule.rdrl


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