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.
This commit is contained in:
@@ -416,8 +416,9 @@ public class PersistenceContext
|
|||||||
if (bin != null) {
|
if (bin != null) {
|
||||||
for (Object key : bin.enumerateKeys()) {
|
for (Object key : bin.enumerateKeys()) {
|
||||||
CacheAdapter.CachedValue<T> element = bin.lookup((Serializable) key);
|
CacheAdapter.CachedValue<T> element = bin.lookup((Serializable) key);
|
||||||
if (element != null) {
|
T value;
|
||||||
filter.visitCacheEntry(this, cacheId, (Serializable) key, element.getValue());
|
if (element != null && (value = element.getValue()) != null) {
|
||||||
|
filter.visitCacheEntry(this, cacheId, (Serializable) key, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user