On Sunday 29 June 2008 15:02, Daniel Cheng wrote:
> On Fri, Jun 27, 2008 at 6:54 AM, <toad at freenetproject.org> wrote:
> > Author: toad
> > Date: 2008-06-26 22:54:01 +0000 (Thu, 26 Jun 2008)
> > New Revision: 20796
> >
> > Modified:
> > branches/db4o/freenet/src/freenet/keys/FreenetURI.java
> > Log:
> > Hopefully prevent NPE in logging
> >
>
> > Modified: branches/db4o/freenet/src/freenet/keys/FreenetURI.java
> > ===================================================================
> > --- branches/db4o/freenet/src/freenet/keys/FreenetURI.java 2008-06-26
22:48:25 UTC (rev 20795)
> > +++ branches/db4o/freenet/src/freenet/keys/FreenetURI.java 2008-06-26
22:54:01 UTC (rev 20796)
> > @@ -540,6 +540,10 @@
> > }
> >
> > public String toString(boolean prefix, boolean pureAscii) {
> > + if(keyType == null) {
> > + // Not activated or something...
>
> Log a minor/debug message here?
Probably a good idea. Done.
>
> > + return null;
> > + }
> > StringBuffer b;
> > if(prefix)
> > b = new StringBuffer("freenet:");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20080701/5397d93d/attachment.pgp>