Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2018-11-15 16:06:38 +0000
committerDonald Dunne2018-11-15 22:07:15 +0000
commita2c9d48cd23144b01ac95a77a3041da037e94392 (patch)
treeeef94187f0a199a33b2b5ea560239a41c963b39e
parent478175ddcb4ccb6cabab984ec9525eb03bd2f69c (diff)
downloadorg.eclipse.osee-a2c9d48cd23144b01ac95a77a3041da037e94392.tar.gz
org.eclipse.osee-a2c9d48cd23144b01ac95a77a3041da037e94392.tar.xz
org.eclipse.osee-a2c9d48cd23144b01ac95a77a3041da037e94392.zip
bug[ats_TW11773]: New Artifact Explorer NPE with no branch selection
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/explorer/ArtifactExplorerToolbar.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/explorer/ArtifactExplorerToolbar.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/explorer/ArtifactExplorerToolbar.java
index 14a21899209..ef8601aa60b 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/explorer/ArtifactExplorerToolbar.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/explorer/ArtifactExplorerToolbar.java
@@ -154,9 +154,11 @@ public class ArtifactExplorerToolbar {
try {
artifactExplorer = (ArtifactExplorer) page.showView(ArtifactExplorer.VIEW_ID, GUID.create(),
IWorkbenchPage.VIEW_ACTIVATE);
- artifactExplorer.explore(
- OseeSystemArtifacts.getDefaultHierarchyRootArtifact(artifactExplorer.getBranch()));
- artifactExplorer.setExpandedArtifacts(artifactExplorer.getTreeViewer().getExpandedElements());
+ if (artifactExplorer.getBranch() != null) {
+ artifactExplorer.explore(
+ OseeSystemArtifacts.getDefaultHierarchyRootArtifact(artifactExplorer.getBranch()));
+ artifactExplorer.setExpandedArtifacts(artifactExplorer.getTreeViewer().getExpandedElements());
+ }
} catch (Exception ex) {
throw new RuntimeException(ex);
}

Back to the top