fix potential crash in keyboard

This commit is contained in:
Philipp Crocoll
2018-09-11 05:02:31 +02:00
parent 10b333ae48
commit b368e93061

View File

@@ -1368,7 +1368,8 @@ public class KP2AKeyboard extends InputMethodService
} }
private void onKp2aPasswordKeyPressed() { private void onKp2aPasswordKeyPressed() {
commitStringForTyping(KeyboardData.availableFields.get(KeyboardData.kp2aFieldIndex+1)); if (KeyboardData.availableFields.size() > KeyboardData.kp2aFieldIndex+1) //some entries may have only title, then there are no two buttons available
commitStringForTyping(KeyboardData.availableFields.get(KeyboardData.kp2aFieldIndex+1));
} }