You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2010/05/17 11:18:39 UTC
svn commit: r945040 -
/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapDecoder.java
Author: elecharny
Date: Mon May 17 09:18:38 2010
New Revision: 945040
URL: http://svn.apache.org/viewvc?rev=945040&view=rev
Log:
Improved the logs
Modified:
directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapDecoder.java
Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapDecoder.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapDecoder.java?rev=945040&r1=945039&r2=945040&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapDecoder.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapDecoder.java Mon May 17 09:18:38 2010
@@ -128,7 +128,14 @@ public class LdapDecoder implements Prov
position = size;
- log.debug( StringTools.dumpBytes( array ) );
+ if ( array.length == 0 )
+ {
+ log.debug( "NULL buffer, what the HELL ???" );
+ }
+ else
+ {
+ log.debug( StringTools.dumpBytes( array ) );
+ }
}
if ( ldapMessageContainer.getState() == TLVStateEnum.PDU_DECODED )