Skip to content

Commit 05bb399

Browse files
author
Leonid Pliushch
authored
terminal-view: fix array indexing
1 parent 831aa69 commit 05bb399

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

terminal-view/src/main/java/com/termux/view/TerminalView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,8 +1547,8 @@ private Properties getProperties() {
15471547
};
15481548

15491549
propsFile = new File(possiblePropLocations[0]);
1550-
int i = 1;
1551-
while (!propsFile.exists() && i <= possiblePropLocations.length) {
1550+
int i = 0;
1551+
while (!propsFile.exists() && i < possiblePropLocations.length) {
15521552
propsFile = new File(possiblePropLocations[i]);
15531553
i += 1;
15541554
}

0 commit comments

Comments
 (0)