From 333b32381349f074383a689ef965e4210cb8e523 Mon Sep 17 00:00:00 2001 From: Richard Cordovano Date: Thu, 1 Apr 2021 09:56:28 -0400 Subject: [PATCH] 7389 Remove erroneous IllegalStateException throw --- .../sleuthkit/autopsy/ingest/IngestTaskPipeline.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/ingest/IngestTaskPipeline.java b/Core/src/org/sleuthkit/autopsy/ingest/IngestTaskPipeline.java index 2866987f46..8264c4fcc9 100755 --- a/Core/src/org/sleuthkit/autopsy/ingest/IngestTaskPipeline.java +++ b/Core/src/org/sleuthkit/autopsy/ingest/IngestTaskPipeline.java @@ -144,10 +144,11 @@ abstract class IngestTaskPipeline { * not been started yet. */ Date getStartTime() { - if (startTime == null) { - throw new IllegalStateException("startUp() was not called"); //NON-NLS + Date reportedStartTime = null; + if (startTime != null) { + reportedStartTime = new Date(startTime.getTime()); } - return new Date(startTime.getTime()); + return reportedStartTime; } /** @@ -322,11 +323,11 @@ abstract class IngestTaskPipeline { * performing the task. */ abstract void performTask(IngestJobPipeline ingestJobPipeline, T task) throws IngestModuleException; - + @Override public void shutDown() { module.shutDown(); - } + } }