]
Edson Tirelli updated JBRULES-3114:
-----------------------------------
Fix Version/s: 5.2.1.Final
regression: set test operator "in" broken
------------------------------------------
Key: JBRULES-3114
URL:
https://issues.jboss.org/browse/JBRULES-3114
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-compiler (expert)
Affects Versions: 5.2.0.Final
Reporter: Wolfgang Laun
Assignee: Edson Tirelli
Priority: Blocker
Fix For: 5.2.1.Final, 5.3.0.Beta1
This simple DRL runs into a NPE
rule a
when
then
insert( Integer.class );
end
rule xxx
when
$t: Class( $name: name not in ( "java.lang.Integer", "Bar",
"Blech" ) )
then
System.out.println( "odd name: " + $t.getName() );
end
Caused by: java.lang.NullPointerException
at
org.drools.base.mvel.MVELPredicateExpression.evaluate(MVELPredicateExpression.java:104)
at org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:291)
If the "not" is removed, another strange error is thrown, claiming that
'name' cannot be accessed.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: