nullpointer fix

This commit is contained in:
Jindra Petřík
2015-11-18 19:25:41 +01:00
parent c41f9afd0f
commit b5bf4c04b8

View File

@@ -973,10 +973,10 @@ public class Graph {
}
for (Loop l : loops) {
if (l.loopContinue == part) {
return (new ContinueItem(null, code.get(part.start), l.id));
return (new ContinueItem(null, part == null ? null : code.get(part.start), l.id));
}
if (l.loopBreak == part) {
return (new BreakItem(null, code.get(part.start), l.id));
return (new BreakItem(null, part == null ? null : code.get(part.start), l.id));
}
}
return null;