diff options
author | donald.g.dunne | 2018-11-15 16:06:38 +0000 |
---|---|---|
committer | Donald Dunne | 2018-11-15 22:07:15 +0000 |
commit | a2c9d48cd23144b01ac95a77a3041da037e94392 (patch) | |
tree | eef94187f0a199a33b2b5ea560239a41c963b39e | |
parent | 478175ddcb4ccb6cabab984ec9525eb03bd2f69c (diff) | |
download | org.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
Change-Id: I3b61b69d5d2de91f422a6ffcfc2c9cbd7e544489
-rw-r--r-- | plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/explorer/ArtifactExplorerToolbar.java | 8 |
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); } |