diff --git a/src/org.hdfgroup.hdfview/hdf/view/HDFView.java b/src/org.hdfgroup.hdfview/hdf/view/HDFView.java index 914cea29..5663344b 100644 --- a/src/org.hdfgroup.hdfview/hdf/view/HDFView.java +++ b/src/org.hdfgroup.hdfview/hdf/view/HDFView.java @@ -995,11 +995,11 @@ public void widgetSelected(SelectionEvent e) String usersGuideURL = ViewProperties.getUsersGuide(); log.trace("usersGuideURL: {}", usersGuideURL); URL urlObject; - if (usersGuideURL != null) - urlObject = new URI(usersGuideURL).toURL(); - else - urlObject = new URI(HDFVIEW_USERSGUIDE_URL).toURL(); try { + if (usersGuideURL != null) + urlObject = new URI(usersGuideURL).toURL(); + else + urlObject = new URI(HDFVIEW_USERSGUIDE_URL).toURL(); org.eclipse.swt.program.Program.launch(urlObject.toString()); } catch (Exception ex) {