]
Mario Fusco resolved JBRULES-3415.
----------------------------------
Fix Version/s: 5.4.0.CR1
Resolution: Done
NPE in RuleTerminalNode when a rule insert a new object and a
subsequent one modifies it
----------------------------------------------------------------------------------------
Key: JBRULES-3415
URL:
https://issues.jboss.org/browse/JBRULES-3415
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Mario Fusco
Assignee: Mario Fusco
Fix For: 5.4.0.CR1
Executing both of the following rules causes an NPE in RuleTerminalNode.java:
rule "addSet"
no-loop true
when
$ms: MySet()
then
modify( $ms ){ add( "three", "four" ) }
insert( new MySet( "x", "y" ) );
end
rule "xySet"
no-loop true
when
$ms: MySet()
then
modify( $ms ){ add( "z" ) }
end
import java.util.*;
public class MySet {
Set<String> set = new HashSet<>();
public MySet( String... strings ){
add( strings );
}
public void add( String... strings ){
for( String s: strings ){
set.add( s );
}
}
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: