Merge pull request #4316 from raman-bt/1142-fix-getdatasource

1142: fix DrawableFile.getDataSource()
This commit is contained in:
Richard Cordovano 2018-12-04 13:11:46 -05:00 committed by GitHub
commit cf88480658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,7 +158,7 @@ public abstract class DrawableFile {
}
public DataSource getDataSource() throws TskCoreException, TskDataException {
return getSleuthkitCase().getDataSource(file.getDataSource().getId());
return getSleuthkitCase().getDataSource(file.getDataSourceObjectId());
}
private Pair<DrawableAttribute<?>, Collection<?>> makeAttributeValuePair(DrawableAttribute<?> attribute) {