directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r917172 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/ModifyDnRequestImpl.java
Date Sun, 28 Feb 2010 12:57:28 GMT
Author: kayyagari
Date: Sun Feb 28 12:57:28 2010
New Revision: 917172

URL: http://svn.apache.org/viewvc?rev=917172&view=rev
Log:
fixed a NPE in toString() method

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/ModifyDnRequestImpl.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/ModifyDnRequestImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/ModifyDnRequestImpl.java?rev=917172&r1=917171&r2=917172&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/ModifyDnRequestImpl.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/ModifyDnRequestImpl.java
Sun Feb 28 12:57:28 2010
@@ -328,7 +328,10 @@
 
         sb.append( "    ModifyDN Response\n" );
         sb.append( "        Entry : '" ).append( name ).append( "'\n" );
-        sb.append( "        New RDN : '" ).append( newRdn.toString() ).append( "'\n" );
+        if( newRdn != null )
+        {
+            sb.append( "        New RDN : '" ).append( newRdn.toString() ).append( "'\n"
);
+        }
         sb.append( "        Delete old RDN : " ).append( deleteOldRdn ).append( "\n" );
 
         if ( newSuperior != null )



Mime
View raw message