directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r755698 - /directory/apacheds/branches/apacheds-replication/mitosis/src/main/java/org/apache/directory/mitosis/syncrepl/SyncreplConsumer.java
Date Wed, 18 Mar 2009 18:50:42 GMT
Author: kayyagari
Date: Wed Mar 18 18:50:42 2009
New Revision: 755698

URL: http://svn.apache.org/viewvc?rev=755698&view=rev
Log:
o updated the cookie storage dir location
o fixed an NPE occurred while deleting a cookie

Modified:
    directory/apacheds/branches/apacheds-replication/mitosis/src/main/java/org/apache/directory/mitosis/syncrepl/SyncreplConsumer.java

Modified: directory/apacheds/branches/apacheds-replication/mitosis/src/main/java/org/apache/directory/mitosis/syncrepl/SyncreplConsumer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-replication/mitosis/src/main/java/org/apache/directory/mitosis/syncrepl/SyncreplConsumer.java?rev=755698&r1=755697&r2=755698&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-replication/mitosis/src/main/java/org/apache/directory/mitosis/syncrepl/SyncreplConsumer.java
(original)
+++ directory/apacheds/branches/apacheds-replication/mitosis/src/main/java/org/apache/directory/mitosis/syncrepl/SyncreplConsumer.java
Wed Mar 18 18:50:42 2009
@@ -150,7 +150,7 @@
     {
         this.directoryService = directoryservice;
 
-        File cookieDir = new File( "cookies" );
+        File cookieDir = new File( directoryservice.getWorkingDirectory(), "cookies" );
         cookieDir.mkdir();
         
         cookieFile = new File( cookieDir, String.valueOf( config.getReplicaId() ) );
@@ -671,7 +671,7 @@
      */
     public void deleteCookieFile()
     {
-        if( cookieFile.exists() )
+        if( cookieFile != null && cookieFile.exists() )
         {
             LOG.debug( "deleting the cookie file" );
             cookieFile.delete();



Mime
View raw message