diff --git a/trunk/src/com/jpexs/decompiler/flash/helpers/Cache.java b/trunk/src/com/jpexs/decompiler/flash/helpers/Cache.java index 70cd6942b..19068b93d 100644 --- a/trunk/src/com/jpexs/decompiler/flash/helpers/Cache.java +++ b/trunk/src/com/jpexs/decompiler/flash/helpers/Cache.java @@ -87,7 +87,12 @@ public class Cache { } public boolean contains(Object key) { - return cacheFiles.containsKey(key); + if (storageType == STORAGE_FILES) { + return cacheFiles.containsKey(key); + } else if (storageType == STORAGE_MEMORY) { + return cacheMemory.containsKey(key); + } + return false; } public void clear() {