-----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-----

Reply via email to