From f7a3cc4f720f2cd237fbf63534730fcb74b33d9b Mon Sep 17 00:00:00 2001 From: Kelly Kelly Date: Wed, 31 Jul 2019 09:29:54 -0400 Subject: [PATCH] removed empty catch block --- .../timeline/TimeLineTopComponent.java | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/timeline/TimeLineTopComponent.java b/Core/src/org/sleuthkit/autopsy/timeline/TimeLineTopComponent.java index 160ad564d4..24bde792ef 100755 --- a/Core/src/org/sleuthkit/autopsy/timeline/TimeLineTopComponent.java +++ b/Core/src/org/sleuthkit/autopsy/timeline/TimeLineTopComponent.java @@ -461,21 +461,17 @@ public final class TimeLineTopComponent extends TopComponent implements Explorer KeyboardFocusManager.getCurrentKeyboardFocusManager() .addPropertyChangeListener("focusOwner", focusPropertyListener); - try{ - VersionNumber version = Case.getCurrentCaseThrows().getSleuthkitCase().getDBSchemaCreationVersion(); - int major = version.getMajor(); - int minor = version.getMinor(); - - if(major < 8 || (major == 8 && minor <= 2)) { - Platform.runLater(() -> { - Notifications.create() - .owner(jFXViewPanel.getScene().getWindow()) - .text(Bundle.Timeline_old_version()).showInformation(); - }); - } - } catch(NoCurrentCaseException ex) { - // No case, don't popup dialog. - } + VersionNumber version = Case.getCurrentCase().getSleuthkitCase().getDBSchemaCreationVersion(); + int major = version.getMajor(); + int minor = version.getMinor(); + + if(major < 8 || (major == 8 && minor <= 2)) { + Platform.runLater(() -> { + Notifications.create() + .owner(jFXViewPanel.getScene().getWindow()) + .text(Bundle.Timeline_old_version()).showInformation(); + }); + } } @Override