diff options
Diffstat (limited to 'source/com/c2kernel/utils')
| -rw-r--r-- | source/com/c2kernel/utils/SoftCache.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/com/c2kernel/utils/SoftCache.java b/source/com/c2kernel/utils/SoftCache.java index ff71222..2fd79f1 100644 --- a/source/com/c2kernel/utils/SoftCache.java +++ b/source/com/c2kernel/utils/SoftCache.java @@ -62,7 +62,8 @@ public class SoftCache<K, V> extends AbstractMap<K, V> { @Override
public V remove(Object key) {
processQueue();
- return hash.remove(key).get();
+ if (hash.containsKey(key)) return hash.remove(key).get();
+ return null;
}
@Override
|
