Don't merge in keys with null values, JCache doesn't support null values.
This commit is contained in:
parent
ca6afc326c
commit
b1e333009c
1 changed files with 3 additions and 1 deletions
|
@ -345,12 +345,14 @@ public class HelenusSession extends AbstractSessionOperations implements Closeab
|
|||
if (pojo == null || pojo == HelenusSession.deleted) {
|
||||
cache.remove(cacheKey);
|
||||
} else {
|
||||
if (pojo != null) {
|
||||
cache.put(cacheKey, pojo);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public CacheManager getCacheManager() {
|
||||
return cacheManager;
|
||||
|
|
Loading…
Reference in a new issue