mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +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
|
||||
AddImageAction.CleanupTask cleanupImage = (AddImageAction.CleanupTask) settings.getProperty(AddImageAction.IMAGECLEANUPTASK_PROP);
|
||||
cleanupImage.disable();
|
||||
settings.putProperty(AddImageAction.IMAGECLEANUPTASK_PROP, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -167,8 +167,10 @@ public final class FileSearchTopComponent extends TopComponent implements DataEx
|
||||
SleuthkitCase tempDb = currentCase.getSleuthkitCase();
|
||||
ResultSet rs = tempDb.runQuery(this.getQuery("count(*) as TotalMatches"));
|
||||
totalMatches = totalMatches + rs.getInt("TotalMatches");
|
||||
rs.close();
|
||||
rs = tempDb.runQuery(this.getQuery(null));
|
||||
currentDbList = tempDb.resultSetToFsContents(rs);
|
||||
rs.close();
|
||||
fsContentList.addAll(currentDbList);
|
||||
} catch (SQLException ex) {
|
||||
Logger logger = Logger.getLogger(this.getClass().getName());
|
||||
|
Loading…
x
Reference in New Issue
Block a user