From 89cc4a1f5401096a080e8f20e30cd6603ead661d Mon Sep 17 00:00:00 2001 From: adam-m Date: Thu, 14 Feb 2013 11:29:03 -0500 Subject: [PATCH] skip processing 0 size history files --- .../src/org/sleuthkit/autopsy/recentactivity/Chrome.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/Chrome.java b/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/Chrome.java index d52f06eb8c..96ba33488c 100644 --- a/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/Chrome.java +++ b/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/Chrome.java @@ -112,8 +112,12 @@ public class Chrome extends Extract implements IngestModuleImage { while (j < historyFiles.size()) { String temps = currentCase.getTempDirectory() + File.separator + historyFiles.get(j).getName().toString() + j + ".db"; int errors = 0; + final FsContent historyFile = historyFiles.get(j); + if (historyFile.getSize() == 0) { + continue; + } try { - ContentUtils.writeToFile(historyFiles.get(j), new File(currentCase.getTempDirectory() + File.separator + historyFiles.get(j).getName().toString() + j + ".db")); + ContentUtils.writeToFile(historyFile, new File(currentCase.getTempDirectory() + File.separator + historyFiles.get(j).getName().toString() + j + ".db")); } catch (IOException ex) { logger.log(Level.SEVERE, "Error writing temp sqlite db for Chrome web history artifacts.{0}", ex); this.addErrorMessage(this.getName() + ": Error while trying to analyze file:" + historyFiles.get(j).getName());