mirror of
https://github.com/elisspace/autopsy.git
synced 2026-09-03 06:25:58 +00:00
1142: fix DrawableFile.getDataSource()
This commit is contained in:
@@ -158,7 +158,11 @@ public abstract class DrawableFile {
|
||||
}
|
||||
|
||||
public DataSource getDataSource() throws TskCoreException, TskDataException {
|
||||
return getSleuthkitCase().getDataSource(file.getDataSource().getId());
|
||||
if (file.getDataSource() instanceof DataSource) {
|
||||
return (DataSource)file.getDataSource();
|
||||
} else {
|
||||
throw new TskCoreException(String.format("Failed to get data source for drawable file (id = %s)", file.getId()));
|
||||
}
|
||||
}
|
||||
|
||||
private Pair<DrawableAttribute<?>, Collection<?>> makeAttributeValuePair(DrawableAttribute<?> attribute) {
|
||||
|
||||
Reference in New Issue
Block a user