I'm assuming it's valid for a CachedValue to exist but have a null value as we

properly ignore those elsewhere, so we should ignore them when traversing the
cache as well.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2214 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2007-08-24 01:46:40 +00:00
parent c672fb0184
commit 968a0d8f02
@@ -416,8 +416,9 @@ public class PersistenceContext
if (bin != null) {
for (Object key : bin.enumerateKeys()) {
CacheAdapter.CachedValue<T> element = bin.lookup((Serializable) key);
if (element != null) {
filter.visitCacheEntry(this, cacheId, (Serializable) key, element.getValue());
T value;
if (element != null && (value = element.getValue()) != null) {
filter.visitCacheEntry(this, cacheId, (Serializable) key, value);
}
}
}