From 9cf94d55255c7e64f626ffb7f0ca0d56b96e101d Mon Sep 17 00:00:00 2001 From: adam-m Date: Tue, 4 Dec 2012 13:46:56 -0500 Subject: [PATCH] do not throw unchecked exception when closing viewer --- .../autopsy/corecomponents/AbstractDataResultViewer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/corecomponents/AbstractDataResultViewer.java b/Core/src/org/sleuthkit/autopsy/corecomponents/AbstractDataResultViewer.java index 5faa296f69..2a1f93e7a6 100644 --- a/Core/src/org/sleuthkit/autopsy/corecomponents/AbstractDataResultViewer.java +++ b/Core/src/org/sleuthkit/autopsy/corecomponents/AbstractDataResultViewer.java @@ -110,8 +110,7 @@ public abstract class AbstractDataResultViewer extends JPanel implements this.em.getRootContext().destroy(); em = null; } catch (IOException ex) { - // TODO: What's the proper thing to do here? Should it log? Not throw runtime exception? - throw new RuntimeException("Error: can't clear the component of the Thumbnail Result Viewer.", ex); + logger.log(Level.WARNING, "Can't clear the component of the Thumbnail Result Viewer.", ex); } }