Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.emf.compare.rcp.ui/src/org/eclipse/emf/compare/rcp/ui/internal/structuremergeviewer/groups/provider/TreeNodeItemProviderSpec.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.compare.rcp.ui/src/org/eclipse/emf/compare/rcp/ui/internal/structuremergeviewer/groups/provider/TreeNodeItemProviderSpec.java b/plugins/org.eclipse.emf.compare.rcp.ui/src/org/eclipse/emf/compare/rcp/ui/internal/structuremergeviewer/groups/provider/TreeNodeItemProviderSpec.java
index 3426e7795..74d746f4b 100644
--- a/plugins/org.eclipse.emf.compare.rcp.ui/src/org/eclipse/emf/compare/rcp/ui/internal/structuremergeviewer/groups/provider/TreeNodeItemProviderSpec.java
+++ b/plugins/org.eclipse.emf.compare.rcp.ui/src/org/eclipse/emf/compare/rcp/ui/internal/structuremergeviewer/groups/provider/TreeNodeItemProviderSpec.java
@@ -114,6 +114,9 @@ public class TreeNodeItemProviderSpec extends TreeNodeItemProvider implements II
if (data instanceof Comparison) {
IDifferenceGroupProvider groupProvider = (IDifferenceGroupProvider)EcoreUtil
.getExistingAdapter(treeNode, IDifferenceGroupProvider.class);
+ if (groupProvider == null) {
+ return ImmutableList.of();
+ }
Comparison comparison = (Comparison)data;
Collection<? extends IDifferenceGroup> groups = groupProvider.getGroups(comparison);
if (groups.isEmpty()) {

Back to the top