Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2016-08-11 23:21:56 +0000
committerRyan D. Brooks2016-08-31 16:18:27 +0000
commit8c4007c1b7b3a3ebf2ac67e6959be5e2abaed78b (patch)
tree0ba1a053bd2baf92e4bd04d6717aae7396af967b /plugins
parente174adf602e402342919cf4a0cace9e079618ea9 (diff)
downloadorg.eclipse.osee-8c4007c1b7b3a3ebf2ac67e6959be5e2abaed78b.tar.gz
org.eclipse.osee-8c4007c1b7b3a3ebf2ac67e6959be5e2abaed78b.tar.xz
org.eclipse.osee-8c4007c1b7b3a3ebf2ac67e6959be5e2abaed78b.zip
bug[ats_ATS309369]: Multiple opens of Resource History causes exception
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/util/SkynetViews.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/util/SkynetViews.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/util/SkynetViews.java
index 7d3613f8351..f3a6408aa3b 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/util/SkynetViews.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/util/SkynetViews.java
@@ -19,6 +19,7 @@ import org.eclipse.osee.framework.skynet.core.utility.OseeInfo;
import org.eclipse.osee.framework.ui.skynet.internal.Activator;
import org.eclipse.osee.framework.ui.swt.Displays;
import org.eclipse.ui.IMemento;
+import org.eclipse.ui.IViewReference;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
@@ -71,7 +72,10 @@ public class SkynetViews {
if (workbenchWindow != null) {
IWorkbenchPage workbenchPage = workbenchWindow.getActivePage();
if (workbenchPage != null) {
- workbenchPage.hideView(workbenchPage.findViewReference(viewId, secondaryId));
+ IViewReference viewReference = workbenchPage.findViewReference(viewId, secondaryId);
+ if (viewReference.getPart(false) != null) {
+ workbenchPage.hideView(viewReference);
+ }
}
}
}

Back to the top