directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r745107 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/ModifyOperationContext.java
Date Tue, 17 Feb 2009 14:48:56 GMT
Author: elecharny
Date: Tue Feb 17 14:48:55 2009
New Revision: 745107

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

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/ModifyOperationContext.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/ModifyOperationContext.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/ModifyOperationContext.java?rev=745107&r1=745106&r2=745107&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/ModifyOperationContext.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/ModifyOperationContext.java
Tue Feb 17 14:48:55 2009
@@ -25,12 +25,12 @@
 
 import javax.naming.NamingException;
 
-import org.apache.directory.shared.ldap.entry.EntryAttribute;
 import org.apache.directory.server.core.CoreSession;
 import org.apache.directory.server.core.entry.ClonedServerEntry;
 import org.apache.directory.server.core.entry.ServerEntry;
 import org.apache.directory.server.core.entry.ServerEntryUtils;
 import org.apache.directory.server.core.entry.ServerModification;
+import org.apache.directory.shared.ldap.entry.EntryAttribute;
 import org.apache.directory.shared.ldap.entry.Modification;
 import org.apache.directory.shared.ldap.entry.ModificationOperation;
 import org.apache.directory.shared.ldap.entry.client.ClientModification;
@@ -164,9 +164,12 @@
         
         sb.append("ModifyContext for DN '").append( getDn().getUpName() ).append( "', modifications
:\n" );
         
-        for ( Modification mod:modItems )
+        if ( modItems != null )
         {
-            sb.append( mod ).append( '\n' );
+            for ( Modification mod:modItems )
+            {
+                sb.append( mod ).append( '\n' );
+            }
         }
         
         return sb.toString();



Mime
View raw message