[rules-users] Null pointer while integer comparison
Holla Sachin-a23031
sachinholla at motorola.com
Tue Jan 23 01:49:33 EST 2007
i was just wondering if this behavior is consistent... say i have two
rules like these:
rule "Equals"
when
MyFact ( integerAttribute == 10 )
then
.....
end
rule "Greater Than"
when
MyFact ( integerAttribute > 10 )
then
.....
end
now, if MyFact returns null for integerAttribute the second rule results
in NullPointerException while asserting the fact.. but the first rule
does not. i am not able to reason out if this is expected
functionality... :(
please help..
thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070123/87cf105d/attachment.html
More information about the rules-users
mailing list