<p dir="ltr">Not checking for nulls is a debatable behavior :) <br>
In 5.6 you should be able to use the null safe accessor <br>
Business activity.!status == ...<br>
Which will be rewritten to do the check for you</p>
<div class="gmail_quote">On Jul 16, 2014 4:33 AM, &quot;braveheart85&quot; &lt;<a href="mailto:andrea.pacifico.85@gmail.com">andrea.pacifico.85@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yesterday I tried version 5.6. I have had a problem with the MVEL syntax.<br>
<br>
rule &quot;RULE1&quot;<br>
  $result: PersonData( businessActivity.status == &quot;CLOSED&quot; )<br>
end<br>
<br>
This rule that works in the version 5.5, now have a problem in version 5.6:<br>
<br>
unable to invoke method:<br>
org.titan.registry.filter.BusinessActivityData.getStatus: target of method<br>
is null<br>
<br>
The problem is that not all Person facts inside the working memory have a<br>
business activity. NullPointer would be quite correct but in version 5.5 the<br>
behaviour was different...<br>
<br>
Maybe I&#39;m abusing of your kindness.<br>
Andrea<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Problem-when-I-cleaning-the-production-memory-tp4030341p4030367.html" target="_blank">http://drools.46999.n3.nabble.com/Problem-when-I-cleaning-the-production-memory-tp4030341p4030367.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div>