diff --git a/bindings/java/src/org/sleuthkit/datamodel/JniDbHelper.java b/bindings/java/src/org/sleuthkit/datamodel/JniDbHelper.java index 95df24bf8c5fbc19fca86e9eaa08bfb88206d64c..0b753b6246c96cda74b4f8a196a7094cb36a89ef 100644 --- a/bindings/java/src/org/sleuthkit/datamodel/JniDbHelper.java +++ b/bindings/java/src/org/sleuthkit/datamodel/JniDbHelper.java @@ -375,12 +375,12 @@ private long addBatchedFilesToDb() { } } commitTransaction(); - try { - addDataSourceCallbacks.onFilesAdded(newObjIds); + try { + addDataSourceCallbacks.onFilesAdded(newObjIds); } catch (Exception ex) { - // Exception firewall to prevent unexpected return to the native code - logger.log(Level.SEVERE, "Unexpected error from files added callback", ex); - } + // Exception firewall to prevent unexpected return to the native code + logger.log(Level.SEVERE, "Unexpected error from files added callback", ex); + } } catch (TskCoreException ex) { logger.log(Level.SEVERE, "Error adding batched files to database", ex); revertTransaction(); @@ -414,7 +414,7 @@ private long getParentObjId(FileInfo fileInfo) throws TskCoreException { // stored in the cache. throw new TskCoreException("Parent not found in cache (fsObjId: " +fileInfo.fsObjId + ", parMetaAddr: " + fileInfo.parMetaAddr + ", parSeq: " + fileInfo.parSeq + ", parentPath: " + parentPath + ")"); - } + } } /**