directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r209024 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessage.java
Date Mon, 04 Jul 2005 06:51:58 GMT
Author: elecharny
Date: Sun Jul  3 23:51:57 2005
New Revision: 209024

URL: http://svn.apache.org/viewcvs?rev=209024&view=rev
Log:
Added a toString() method.

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessage.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessage.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessage.java?rev=209024&r1=209023&r2=209024&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessage.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessage.java
Sun Jul  3 23:51:57 2005
@@ -296,9 +296,12 @@
         sb.append( "    messageId : " ).append( messageId ).append( '\n' );
         sb.append( protocolOp.toString() ).append( '\n' );
 
-        for ( int i = 0; i < controls.size(); i++ )
+        if ( controls != null )
         {
-            sb.append( ( ( Control ) controls.get( i ) ).toString() ).append( '\n' );
+	        for ( int i = 0; i < controls.size(); i++ )
+	        {
+	            sb.append( ( ( Control ) controls.get( i ) ).toString() ).append( '\n' );
+	        }
         }
 
         return sb.toString();



Mime
View raw message