directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r945040 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapDecoder.java
Date Mon, 17 May 2010 09:18:39 GMT
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 )



Mime
View raw message