Merge pull request #4369 from wschaeferB/4491-FixExtractedDataSourceResults

4491 fix extracted data source results
This commit is contained in:
Richard Cordovano 2018-12-13 17:36:41 -05:00 committed by GitHub
commit ba1846fb8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()));