Hi,
I am using eclipse IDE for Drools.
I am new to Drools so just trying adding to numbers if they are other then zero, but I am getting Null Pointer Exception .
rule add
salience 10
when
a1 : AddNumber ( op1 != 0 )
a2: AddNumber ( op2 != 0 )
then
a1.setResult( a1.getOp1() + a2.getOp2() );
System.out.println( "Result is "+a1.getResult());
End
Regards
Shilpa