4491 fix the diplay of results from extracted data sources for common property search

This commit is contained in:
William Schaefer 2018-12-13 14:32:35 -05:00
parent 8b1f36fa4e
commit 55feb83cf7

View File

@ -81,7 +81,7 @@ final public class CentralRepoCommonAttributeInstance extends AbstractCommonAttr
// Find the correct data source // Find the correct data source
Optional<DataSource> dataSource = tskDb.getDataSources().stream() Optional<DataSource> dataSource = tskDb.getDataSources().stream()
.filter(p -> p.getDeviceId().equals(currentAttribute.getCorrelationDataSource().getDeviceID())) .filter(p -> p.getId() == currentAttribute.getCorrelationDataSource().getDataSourceObjectID())
.findFirst(); .findFirst();
if (!dataSource.isPresent()) { 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())); LOGGER.log(Level.WARNING, String.format("Unable to find data source with device ID %s in the current case", currentAttribute.getCorrelationDataSource().getDeviceID()));