summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorWojciech Sudol2013-11-27 04:26:46 (EST)
committer Gerrit Code Review @ Eclipse.org2013-11-27 10:40:36 (EST)
commit3b3894f712dd09df69050b01fa492960a9705a96 (patch)
treec499244b89c28907cb9335ebbe6d15030ff9e62f
parent828ba48a951c4ce56ec1a72784d3274057f93260 (diff)
downloadeclipse.platform.ui-3b3894f712dd09df69050b01fa492960a9705a96.zip
eclipse.platform.ui-3b3894f712dd09df69050b01fa492960a9705a96.tar.gz
eclipse.platform.ui-3b3894f712dd09df69050b01fa492960a9705a96.tar.bz2
Bug 397872 - [Workbench] NPE in WorkbenchPage#busyShowViewrefs/changes/54/18754/4
Change-Id: Ib2057dbce9292409acef6420e0fcf63a34fe228b Signed-off-by: Wojciech Sudol <wojciech.sudol@pl.ibm.com>
-rw-r--r--bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/PartServiceImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/PartServiceImpl.java b/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/PartServiceImpl.java
index dc1c90a..8908be4 100644
--- a/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/PartServiceImpl.java
+++ b/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/PartServiceImpl.java
@@ -823,7 +823,8 @@ public class PartServiceImpl implements EPartService {
}
} else {
List<MElementContainer> containers = modelService.findElements(getContainer(),
- null, MElementContainer.class, Collections.singletonList(category));
+ null, MElementContainer.class, Collections.singletonList(category),
+ EModelService.PRESENTATION);
if (containers.isEmpty()) {
// couldn't find any containers with the specified tag, just add it to the
// end