terminal-view: fix array indexing

This commit is contained in:
Leonid Pliushch
2021-01-17 19:40:29 +02:00
committed by GitHub
parent 831aa69da8
commit 05bb399893

View File

@@ -1547,8 +1547,8 @@ public final class TerminalView extends View {
};
propsFile = new File(possiblePropLocations[0]);
int i = 1;
while (!propsFile.exists() && i <= possiblePropLocations.length) {
int i = 0;
while (!propsFile.exists() && i < possiblePropLocations.length) {
propsFile = new File(possiblePropLocations[i]);
i += 1;
}