I found the issue: I have to set all the globals before inserting any facts:
cmds.add(CommandFactory.newSetGlobal( "addressManager", addressManager, true)); ... cmds.add(CommandFactory.newInsert(event)); -- View this message in context: http://drools.46999.n3.nabble.com/MVEL-Expression-causing-NPE-in-MVEL-optimizer-tp3733427p3766434.html Sent from the Drools: User forum mailing list archive at Nabble.com. _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
