diff --git a/src/java/com/samskivert/jdbc/depot/PersistenceContext.java b/src/java/com/samskivert/jdbc/depot/PersistenceContext.java index 3b910bb..962b1bf 100644 --- a/src/java/com/samskivert/jdbc/depot/PersistenceContext.java +++ b/src/java/com/samskivert/jdbc/depot/PersistenceContext.java @@ -416,8 +416,9 @@ public class PersistenceContext if (bin != null) { for (Object key : bin.enumerateKeys()) { CacheAdapter.CachedValue 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); } } }