[jboss-jira] [JBoss JIRA] Created: (JBRULES-3114) regression: set test operator "in" broken
Wolfgang Laun (JIRA)
jira-events at lists.jboss.org
Thu Jun 30 10:12:23 EDT 2011
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: Mark Proctor
Priority: Blocker
Fix For: FUTURE
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: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list