diff --git a/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/ImageGalleryController.java b/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/ImageGalleryController.java index 29ad69f149..0781a358dd 100644 --- a/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/ImageGalleryController.java +++ b/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/ImageGalleryController.java @@ -401,8 +401,7 @@ public final class ImageGalleryController { */ public void rebuildDB() { // queue a rebuild task for each stale data source - Set staleDataSources = getStaleDataSourceIds(); - staleDataSources.forEach((dataSourceObjId) -> { + getStaleDataSourceIds().forEach((dataSourceObjId) -> { queueDBTask(new CopyAnalyzedFiles(dataSourceObjId, instance, db, sleuthKitCase)); }); } diff --git a/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/PerCaseProperties.java b/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/PerCaseProperties.java index d87b13e880..56811352f0 100644 --- a/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/PerCaseProperties.java +++ b/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/PerCaseProperties.java @@ -40,8 +40,6 @@ class PerCaseProperties { public static final String ENABLED = "enabled"; //NON-NLS - public static final String STALE = "stale"; //NON-NLS - private final Case theCase; PerCaseProperties(Case c) { diff --git a/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/datamodel/DrawableDB.java b/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/datamodel/DrawableDB.java index dc756dcefb..99b5e2bd63 100644 --- a/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/datamodel/DrawableDB.java +++ b/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/datamodel/DrawableDB.java @@ -786,7 +786,7 @@ public final class DrawableDB { statement = con.createStatement(); rs = statement.executeQuery("SELECT ds_obj_id, drawable_db_build_status FROM datasources "); //NON-NLS while (rs.next()) { - map.put(rs.getLong(1), DrawableDbBuildStatusEnum.valueOf(rs.getString(2))); + map.put(rs.getLong("ds_obj_id"), DrawableDbBuildStatusEnum.valueOf(rs.getString("drawable_db_build_status"))); } } catch (SQLException e) { throw new TskCoreException("SQLException while getting data source object ids", e);