From 0d48d76bde366dada2723bcdedcbdf831f4029ae Mon Sep 17 00:00:00 2001 From: William Schaefer Date: Fri, 21 Sep 2018 13:35:08 -0400 Subject: [PATCH] Fix issue with caching wrong correlation type --- .../autopsy/centralrepository/datamodel/AbstractSqlEamDb.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/AbstractSqlEamDb.java b/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/AbstractSqlEamDb.java index 2aae94cb24..68e5b4f8c2 100644 --- a/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/AbstractSqlEamDb.java +++ b/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/AbstractSqlEamDb.java @@ -2887,7 +2887,7 @@ abstract class AbstractSqlEamDb implements EamDb { @Override public CorrelationAttributeInstance.Type getCorrelationTypeById(int typeId) throws EamDbException { try { - return typeCache.get(CorrelationAttributeInstance.FILES_TYPE_ID, () -> getCorrelationTypeByIdFromCr(typeId)); + return typeCache.get(typeId, () -> getCorrelationTypeByIdFromCr(typeId)); } catch (CacheLoader.InvalidCacheLoadException ignored) { //lambda valueloader returned a null value and cache can not store null values this is normal if the correlation type does not exist in the central repo yet return null;