diff --git a/Core/src/org/sleuthkit/autopsy/commonfilesearch/CentralRepoCommonAttributeInstance.java b/Core/src/org/sleuthkit/autopsy/commonfilesearch/CentralRepoCommonAttributeInstance.java index cfcc40e603..7847b31ca4 100644 --- a/Core/src/org/sleuthkit/autopsy/commonfilesearch/CentralRepoCommonAttributeInstance.java +++ b/Core/src/org/sleuthkit/autopsy/commonfilesearch/CentralRepoCommonAttributeInstance.java @@ -81,7 +81,7 @@ final public class CentralRepoCommonAttributeInstance extends AbstractCommonAttr // Find the correct data source Optional dataSource = tskDb.getDataSources().stream() - .filter(p -> p.getDeviceId().equals(currentAttribute.getCorrelationDataSource().getDeviceID())) + .filter(p -> p.getId() == currentAttribute.getCorrelationDataSource().getDataSourceObjectID()) .findFirst(); if (!dataSource.isPresent()) { LOGGER.log(Level.WARNING, String.format("Unable to find data source with device ID %s in the current case", currentAttribute.getCorrelationDataSource().getDeviceID()));