Skip to content

Commit 07ca6db

Browse files
committed
Fix CCE in SwitchHelper
1 parent e7bde41 commit 07ca6db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/jetbrains/java/decompiler/modules/decompiler/SwitchHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private static boolean simplify(SwitchStatement switchStatement, StructMethod mt
9090
}
9191
}
9292

93-
if (targetsField) {
93+
if (targetsField && ((ArrayExprent) left).getIndex() instanceof InvocationExprent) {
9494
mapping.put(assignment.getRight(), ((InvocationExprent) ((ArrayExprent) left).getIndex()).getInstance());
9595
}
9696
} else if (fieldAssignments.contains(exprent)) {

0 commit comments

Comments
 (0)