#1183 Index out of bounds fix

This commit is contained in:
Jindra Petřík
2016-03-05 07:56:52 +01:00
parent 1a74bd5ef9
commit cc6d7c8f52

View File

@@ -303,7 +303,7 @@ public class ActionGraph extends Graph {
part = part.nextParts.get(1);
//caseBodyParts.add(part);
GraphPart defaultPart = part;
if (code.get(defaultPart.start) instanceof ActionJump) {
if (code.size() > defaultPart.start && code.get(defaultPart.start) instanceof ActionJump) {
defaultPart = defaultPart.nextParts.get(0);
}