<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">DROOLS-71 has already been fixed in
master, it's another bug that will be corrected<br>
when 5.6 and 6.x are released. <br>
I do agree with Wolfgang, I wonder if you can control the elements
as the list is populated<br>
Davide<br>
<br>
<br>
<br>
On 04/29/2013 09:48 AM, Wolfgang Laun wrote:<br>
</div>
<blockquote
cite="mid:CANaj1Ld8cmVSPNcSp66DyasM+ZKqBsgo7yiGi7KQqFyLpdVyNw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>I'd dearly love to hear some good argument why
null in a List<Things> is good coding<br>
</div>
practice (note: I'm not asking for "best practice").
- Compare these two sentences:<br>
<br>
</div>
He looked into her eyes....<br>
</div>
He looked into her eyes.<br>
<br>
</div>
It'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'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 "from" while covering null is just
postponing the detection of an error - if<br>
you are with me that null shouldn'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"><<a
moz-do-not-send="true"
href="mailto:dcrissman@redhat.com"
target="_blank">dcrissman@redhat.com</a>></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't seem to be a solution for:<br>
<a moz-do-not-send="true"
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
moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a moz-do-not-send="true"
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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a></pre>
</blockquote>
<br>
</body>
</html>