mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-18 02:27:42 +00:00
Close DB ResultSet to fix locked DB error on image add
This commit is contained in:
parent
bfb7ffacf0
commit
3a0496895f
@ -203,6 +203,7 @@ class AddImageWizardPanel3 implements WizardDescriptor.Panel<WizardDescriptor> {
|
|||||||
// task
|
// task
|
||||||
AddImageAction.CleanupTask cleanupImage = (AddImageAction.CleanupTask) settings.getProperty(AddImageAction.IMAGECLEANUPTASK_PROP);
|
AddImageAction.CleanupTask cleanupImage = (AddImageAction.CleanupTask) settings.getProperty(AddImageAction.IMAGECLEANUPTASK_PROP);
|
||||||
cleanupImage.disable();
|
cleanupImage.disable();
|
||||||
|
settings.putProperty(AddImageAction.IMAGECLEANUPTASK_PROP, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -167,8 +167,10 @@ public final class FileSearchTopComponent extends TopComponent implements DataEx
|
|||||||
SleuthkitCase tempDb = currentCase.getSleuthkitCase();
|
SleuthkitCase tempDb = currentCase.getSleuthkitCase();
|
||||||
ResultSet rs = tempDb.runQuery(this.getQuery("count(*) as TotalMatches"));
|
ResultSet rs = tempDb.runQuery(this.getQuery("count(*) as TotalMatches"));
|
||||||
totalMatches = totalMatches + rs.getInt("TotalMatches");
|
totalMatches = totalMatches + rs.getInt("TotalMatches");
|
||||||
|
rs.close();
|
||||||
rs = tempDb.runQuery(this.getQuery(null));
|
rs = tempDb.runQuery(this.getQuery(null));
|
||||||
currentDbList = tempDb.resultSetToFsContents(rs);
|
currentDbList = tempDb.resultSetToFsContents(rs);
|
||||||
|
rs.close();
|
||||||
fsContentList.addAll(currentDbList);
|
fsContentList.addAll(currentDbList);
|
||||||
} catch (SQLException ex) {
|
} catch (SQLException ex) {
|
||||||
Logger logger = Logger.getLogger(this.getClass().getName());
|
Logger logger = Logger.getLogger(this.getClass().getName());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user