directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1028919 - /directory/apacheds/branches/apacheds-config/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStore.java
Date Fri, 29 Oct 2010 21:51:02 GMT
Author: elecharny
Date: Fri Oct 29 21:51:02 2010
New Revision: 1028919

URL: http://svn.apache.org/viewvc?rev=1028919&view=rev
Log:
Fixed a NPE

Modified:
    directory/apacheds/branches/apacheds-config/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStore.java

Modified: directory/apacheds/branches/apacheds-config/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStore.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-config/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStore.java?rev=1028919&r1=1028918&r2=1028919&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-config/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStore.java
(original)
+++ directory/apacheds/branches/apacheds-config/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStore.java
Fri Oct 29 21:51:02 2010
@@ -302,7 +302,11 @@ public class JdbmStore<E> extends Abstra
         else if ( index instanceof JdbmIndex<?, ?> )
         {
             jdbmIndex = ( JdbmIndex<?, E> ) index;
-            jdbmIndex.setWkDirPath( partitionDir );
+            
+            if ( jdbmIndex.getWkDirPath() == null )
+            {
+                jdbmIndex.setWkDirPath( partitionDir );
+            }
         }
         else
         {



Mime
View raw message