* Daniel Cheng <j16sdiz+freenet at gmail.com> [2008-07-27 21:38:48]:

> On Sun, Jul 27, 2008 at 3:55 PM,  <nextgens at freenetproject.org> wrote:
> > Author: nextgens
> > Date: 2008-07-27 07:55:59 +0000 (Sun, 27 Jul 2008)
> > New Revision: 21433
> >
> > Modified:
> >   trunk/freenet/src/freenet/l10n/L10n.java
> > Log:
> > l10n: prevent a potential npe (in case we remove a key from the l10n file 
> > from one version to another)
> 
> String.equals(null) is false, it never give NPE.
> 
> see 
> http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#equals(java.lang.Object)
>  # For any non-null reference value x, x.equals(null) should return false.

Right, reverted in r21440
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20080727/e3e8a65a/attachment.pgp>

Reply via email to