Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2018-02-11 14:25:39 -0500
committerStephan Herrmann2018-02-11 15:24:20 -0500
commit09f9c3acff9a9b9ed8e232c9ded7be8179efd2d8 (patch)
treedf05637074108dd2a913df616775e862e3f2889f
parentac897e69aa0b96e912e2df15878953f54f47c7f5 (diff)
downloadorg.eclipse.objectteams-09f9c3acff9a9b9ed8e232c9ded7be8179efd2d8.tar.gz
org.eclipse.objectteams-09f9c3acff9a9b9ed8e232c9ded7be8179efd2d8.tar.xz
org.eclipse.objectteams-09f9c3acff9a9b9ed8e232c9ded7be8179efd2d8.zip
Resilience: saw NPE caused by base class problem
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/statemachine/transformer/SwitchOnBaseTypeGenerator.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/statemachine/transformer/SwitchOnBaseTypeGenerator.java b/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/statemachine/transformer/SwitchOnBaseTypeGenerator.java
index e97aefc92..a1e43364b 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/statemachine/transformer/SwitchOnBaseTypeGenerator.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/statemachine/transformer/SwitchOnBaseTypeGenerator.java
@@ -118,6 +118,8 @@ public abstract class SwitchOnBaseTypeGenerator implements IOTConstants {
*/
for (int idx = caseObjects.length-1; idx >= 0; idx--) {
RoleModel object = caseObjects[idx];
+ if (object.hasBaseclassProblem())
+ continue;
Statement s = (teamType.getTeamModel().isAmbiguousLifting(staticRoleType, object.getBaseTypeBinding()))
? createStatementForAmbiguousBase(gen)

Back to the top