I received a NullPointerException when running rules; i have simplified the DRL file to reproduce the problem.
These are my versions:
- KIE_VERSION:7.53.0.Final
- jboss/business-central-workbench-showcase:latest
rule "retract"
no-loop
when
then
retract( new String("myString"))
end
When I fire this rule, Drools throws a NullPointerException.
I have testet it in both equality mode and identity mode.
In equality mode, it fails unless a Fact new String("myString") was previously inserted into working memory.
Is this a bug? How do I avoid it?
Thanks, Saverio