<div dir="ltr"><div><div><div><div><div><div><div>I&#39;d dearly love to hear some good argument why null in a List&lt;Things&gt; is good coding<br></div>practice (note: I&#39;m not asking for &quot;best practice&quot;). - Compare these two sentences:<br>
<br></div>    He looked into her eyes....<br></div>    He looked into her eyes.<br><br></div>It&#39;s pretty obvious that the ellipsis indicates a planned absence of words, whereas the<br>second sentence just shows a void, or no void, at its end. (Or: lover or typo or oculist.)<br>
What I&#39;m trying to say is that a  null planned to show a special case is indistinguishable<br>from the null that happens due to an error.<br><br></div><div>Processing &quot;from&quot; while covering null is just postponing the detection of an error - if<br>
you are with me that null shouldn&#39;t be there in the first place.<br></div><div><br></div>But, yes, you can test:<br></div>   list contains null<br></div>should tell you whether there is a fly in the ointment.<br><div>
<div><div><div><div><div><div><div><div><div><div><div class="gmail_extra"><br></div><div class="gmail_extra">-W<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 April 2013 15:28, dcrissman <span dir="ltr">&lt;<a href="mailto:dcrissman@redhat.com" target="_blank">dcrissman@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I ran into this situation for which there doesn&#39;t seem to be a solution for:<br>
<a href="https://issues.jboss.org/browse/DROOLS-71" target="_blank">https://issues.jboss.org/browse/DROOLS-71</a><br>
<br>
I am using drools v. 5.5.0.Final<br>
<br>
My preference would  be for Drools to simply skip the null value, but if<br>
that is not possible, is there a way to check for a null entry?<br>
<br>
How have other people worked through this issue?<br>
<br>
Thanks.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Check-for-null-entry-in-collection-before-iterating-tp4023583.html" target="_blank">http://drools.46999.n3.nabble.com/Check-for-null-entry-in-collection-before-iterating-tp4023583.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><br></div></div></div></div></div></div></div></div></div></div></div></div></div>