directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1157269 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog/MemoryChangeLogStore.java
Date Fri, 12 Aug 2011 22:19:58 GMT
Author: elecharny
Date: Fri Aug 12 22:19:58 2011
New Revision: 1157269

URL: http://svn.apache.org/viewvc?rev=1157269&view=rev
Log:
Initilize the DS instance before calling the loadChangeLog method to avoid a NPE

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog/MemoryChangeLogStore.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog/MemoryChangeLogStore.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog/MemoryChangeLogStore.java?rev=1157269&r1=1157268&r2=1157269&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog/MemoryChangeLogStore.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog/MemoryChangeLogStore.java
Fri Aug 12 22:19:58 2011
@@ -121,10 +121,10 @@ public class MemoryChangeLogStore implem
     public void init( DirectoryService service ) throws Exception
     {
         workingDirectory = service.getInstanceLayout().getLogDirectory();
+        this.directoryService = service;
         loadRevision();
         loadTags();
         loadChangeLog();
-        this.directoryService = service;
     }
 
 



Mime
View raw message