On Fri, Jan 8, 2010 at 1:56 PM, Kevin Reid <span dir="ltr"><<a href="mailto:kpreid@mac.com">kpreid@mac.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I tried this and was surprised to find it fail:<br>
<br>
? introducer.setNetConfig(<import:net.vattp.data.makeNetConfig>())<br>
? introducer.onTheAir()<br>
# problem: <NullPointerException><br>
<br>
NetConfig.java:<br>
public NetConfig() {<br>
this(ConstList.EmptyList, ConstList.EmptyList, null);<br>
}<br>
<br>
<br>
VatTPMgr.java:<br>
ConstList listenPath = netConfig.getListenAddrPath();<br>
if (0 == listenPath.size()) {<br>
listenPath = listenPath.with(null);<br>
}<br>
<br>
The ordinary NetConfig construction (NetConfig.make) always puts a<br>
(possibly empty) ConstList in listenAddrPath. Should the no-args<br>
constructor do the same thing, or is there an intended semantic<br>
distinction from having an empty list vs. no list?<br>
<br></blockquote><div>Just looked to remind myself. No intended semantics. Looks like a just made a simple mistake. (When I do intend a variable to possibly hold null, I'm rather consistent about including an "opt" in the name.) Thanks for figuring this out.<br>
<br>Big fixed and change committed.<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
--<br>
Kevin Reid <<a href="http://switchb.org/kpreid/" target="_blank">http://switchb.org/kpreid/</a>><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
e-lang mailing list<br>
<a href="mailto:e-lang@mail.eros-os.org">e-lang@mail.eros-os.org</a><br>
<a href="http://www.eros-os.org/mailman/listinfo/e-lang" target="_blank">http://www.eros-os.org/mailman/listinfo/e-lang</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Text by me above is hereby placed in the public domain<br><br> Cheers,<br> --MarkM<br><br>