directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fe...@otego.com>
Subject [Shared] AddRequestCodec
Date Fri, 04 Jun 2010 12:58:19 GMT
-----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?

The method endProtocolOp lacks the same problem (entry==null) but
declares a thrown exception, so the NPE can be avoided and a specific
error can be thrown.

http://people.apache.org/~felixk/shared-docs/xref/org/apache/directory/shared/ldap/codec/add/AddRequestCodec.html#280
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwI+GsACgkQ2lZVCB08qHFB/wCdFu5zXAjz+avMycSZ2B7T5lnu
fBMAoJxb//IVhqPCMuIiAebZcwNR0jaZ
=xQQc
-----END PGP SIGNATURE-----

Mime
View raw message