mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-55747 - AIOOBE: ControlFlowUtil.getUsedVariables
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user