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:
Derek Hulley
2009-09-02 14:37:09 +00:00
parent 3351a38b6c
commit 381d7730c5

View File

@@ -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;
}