The global (?) addressManager is initialized *before* inserting the fact. As for findFirstAddressByTypeByPerson(), the exception is thrown before it's invoked: the NPE is thrown as part of the MVEL optimizers.
-- View this message in context: http://drools.46999.n3.nabble.com/MVEL-Expression-causing-NPE-in-MVEL-optimizer-tp3733427p3736063.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
