Re: [rules-users] Null Pointer Exception : org.mvel2.ast.Negation.getReducedValueAccelerated(PredicateConstraint.java:298)

2011-12-28 Thread ronalbury
It appears that a work around is to test if the boolean value is equal to true or false. The following seems to work: $ea : EasyApp(getOwn_eaIsProposedInsuredIndAsBoolean() == false) -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Null-Pointer-Exception-org-mvel2-

Re: [rules-users] Null Pointer Exception : org.mvel2.ast.Negation.getReducedValueAccelerated(PredicateConstraint.java:298)

2011-12-28 Thread ronalbury
I commented out the rule causing the null pointer error. When it got to another null Boolean value (this time without negation) I got another (different) null pointer exception: org.drools.base.mvel.MVELPredicateExpression.evaluate(MVELPredicateExpression.java:104) -- View this message in context:

[rules-users] Null Pointer Exception : org.mvel2.ast.Negation.getReducedValueAccelerated(PredicateConstraint.java:298)

2011-12-28 Thread Ronald Albury
MVEL appeared to be null pointer protected when it evaluated our rules ... at least until it got to a Boolean attribute. In every other instance when an value is null Drools skips over the rule ... however, I get the null pointer exception listed above when Drools goes to execute this rule and the