HHH-10182 Backport HHH-7898 for JTA environment only
* fixed possible NPE
This commit is contained in:
parent
5d74afbc2d
commit
dbb30213ed
|
@ -94,7 +94,9 @@ public class QueryResultsRegionImpl extends BaseTransactionalDataRegion implemen
|
||||||
public void evict(Object key) throws CacheException {
|
public void evict(Object key) throws CacheException {
|
||||||
for (Map<Object, PostTransactionQueryUpdate> map : transactionContext.values()) {
|
for (Map<Object, PostTransactionQueryUpdate> map : transactionContext.values()) {
|
||||||
PostTransactionQueryUpdate update = map.remove(key);
|
PostTransactionQueryUpdate update = map.remove(key);
|
||||||
update.setValue(null);
|
if (update != null) {
|
||||||
|
update.setValue(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
evictCache.remove( key );
|
evictCache.remove( key );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue