mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed EntityLookupCache: ID-based caching was being missed if the value-key was null
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16052 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -341,11 +341,11 @@ public class EntityLookupCache<K extends Serializable, V extends Object, VK exte
|
||||
CacheRegionValueKey valueCacheKey = new CacheRegionValueKey(cacheRegion, valueKey);
|
||||
// The key is good, so we can cache the value
|
||||
cache.put(valueCacheKey, key);
|
||||
}
|
||||
cache.put(
|
||||
keyCacheKey,
|
||||
(value == null ? VALUE_NULL : value));
|
||||
}
|
||||
}
|
||||
// Done
|
||||
return entityPair;
|
||||
}
|
||||
|
Reference in New Issue
Block a user