You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tv...@apache.org on 2019/05/28 13:48:55 UTC

[commons-jcs] 07/09: JCS-194 NullPointerException in IndexedDiskCache.addToRecycleBin(...)

This is an automated email from the ASF dual-hosted git repository.

tv pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jcs.git

commit efdbca65496d8d6d928398833c86091dcbeb74eb
Author: Thomas Vandahl <tv...@apache.org>
AuthorDate: Tue May 28 15:44:57 2019 +0200

    JCS-194 NullPointerException in IndexedDiskCache.addToRecycleBin(...)
---
 .../apache/commons/jcs/auxiliary/disk/indexed/IndexedDiskCache.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/disk/indexed/IndexedDiskCache.java b/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/disk/indexed/IndexedDiskCache.java
index 42384f9..825376e 100644
--- a/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/disk/indexed/IndexedDiskCache.java
+++ b/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/disk/indexed/IndexedDiskCache.java
@@ -177,11 +177,10 @@ public class IndexedDiskCache<K, V> extends AbstractDiskCache<K, V>
 
         try
         {
+            initializeRecycleBin();
             initializeFileSystem(cattr);
-
             initializeKeysAndData(cattr);
 
-            initializeRecycleBin();
 
             // Initialization finished successfully, so set alive to true.
             setAlive(true);