From c4eb4d30a932b6a3a364f17173fac03ea10ac2f5 Mon Sep 17 00:00:00 2001 From: sidhesh Date: Fri, 13 Feb 2015 17:59:29 -0500 Subject: [PATCH] viewOnlineHelp() creates the URI object. --- .../autopsy/corecomponents/OnlineHelpAction.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/corecomponents/OnlineHelpAction.java b/Core/src/org/sleuthkit/autopsy/corecomponents/OnlineHelpAction.java index f81fae5574..1e28c815a2 100644 --- a/Core/src/org/sleuthkit/autopsy/corecomponents/OnlineHelpAction.java +++ b/Core/src/org/sleuthkit/autopsy/corecomponents/OnlineHelpAction.java @@ -60,13 +60,7 @@ public final class OnlineHelpAction implements ActionListener { @Override public void actionPerformed(ActionEvent e) { // TODO implement action body - try { - uri = new URI(NbBundle.getMessage(OnlineHelpAction.class, "URL_ON_HELP")); // NOI18N - viewOnlineHelp(); - } catch (URISyntaxException ex) { - Logger.log(Level.SEVERE, "Unable to load Online Documentation", ex); - } - uri = null; + viewOnlineHelp(); } /** @@ -74,6 +68,11 @@ public final class OnlineHelpAction implements ActionListener { * available, displays it in the built-in OpenIDE HTML Browser. */ private void viewOnlineHelp() { + try { + uri = new URI(NbBundle.getMessage(OnlineHelpAction.class, "URL_ON_HELP")); + } catch (URISyntaxException ex) { + Logger.log(Level.SEVERE, "Unable to load Online Documentation", ex); + } if (uri != null) { // Display URL in the SYstem browser if (Desktop.isDesktopSupported()) {