directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r372688 - /directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/Control.java
Date Fri, 27 Jan 2006 01:18:04 GMT
Author: elecharny
Date: Thu Jan 26 17:18:01 2006
New Revision: 372688

URL: http://svn.apache.org/viewcvs?rev=372688&view=rev
Log:
Fixed a NPE in toString() method

Modified:
    directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/Control.java

Modified: directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/Control.java
URL: http://svn.apache.org/viewcvs/directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/Control.java?rev=372688&r1=372687&r2=372688&view=diff
==============================================================================
--- directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/Control.java (original)
+++ directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/Control.java Thu
Jan 26 17:18:01 2006
@@ -286,7 +286,7 @@
         StringBuffer sb = new StringBuffer();
         
         sb.append("    Control\n");
-        sb.append("        Control type : '").append( controlType.toString() ).append("'\n");
+        sb.append("        Control type : '").append( controlType != null ? controlType.toString()
: "null" ).append("'\n");
         sb.append("        Criticality : '").append( criticality ).append( "'\n") ;
         
         if ( controlValue != null ) 



Mime
View raw message