EA-55747 - AIOOBE: ControlFlowUtil.getUsedVariables

This commit is contained in:
Anna Kozlova
2014-04-16 10:31:02 +02:00
parent 6e61173ea3
commit 62db5cec17
@@ -213,6 +213,7 @@ public class ControlFlowUtil {
public static List<PsiVariable> getUsedVariables(ControlFlow flow, int start, int end) {
ArrayList<PsiVariable> array = new ArrayList<PsiVariable>();
if (start < 0) return array;
List<Instruction> instructions = flow.getInstructions();
for (int i = start; i < end; i++) {
Instruction instruction = instructions.get(i);