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,7 +345,9 @@ public class HelenusSession extends AbstractSessionOperations implements Closeab
|
||||||
if (pojo == null || pojo == HelenusSession.deleted) {
|
if (pojo == null || pojo == HelenusSession.deleted) {
|
||||||
cache.remove(cacheKey);
|
cache.remove(cacheKey);
|
||||||
} else {
|
} else {
|
||||||
cache.put(cacheKey, pojo);
|
if (pojo != null) {
|
||||||
|
cache.put(cacheKey, pojo);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue