directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject Re: [Shared] AddRequestCodec
Date Fri, 04 Jun 2010 13:08:14 GMT
On 6/4/10 2:58 PM, Felix Knecht wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> A NPE may be thrown at line 280 if 'entry==null'. As the method doesn't
> declares a thrown exception I suppose that a default length (like -1)
> should be returned if the coumputing fails?
>    
Good point. I think we can test that the entry is not null, and if so, 
throw an IllegalArgumentException (IAE in the next ten mails, as i'm 
fedup of typing it everytime in extenso ;)


-- 
Regards,
Cordialement,
Emmanuel L├ęcharny
www.nextury.com



Mime
View raw message