Fix null in android keyboard handling.

(cherry picked from commit 31fe6848e8)
This commit is contained in:
Jason Knight 2022-10-05 11:18:39 -06:00 committed by Haoyu Qiu
parent 560c77b1a1
commit f5b2f77111

View file

@ -126,7 +126,7 @@ public class GodotTextInputWrapper implements TextWatcher, OnEditorActionListene
@Override @Override
public boolean onEditorAction(final TextView pTextView, final int pActionID, final KeyEvent pKeyEvent) { public boolean onEditorAction(final TextView pTextView, final int pActionID, final KeyEvent pKeyEvent) {
if (this.mEdit == pTextView && this.isFullScreenEdit()) { if (this.mEdit == pTextView && this.isFullScreenEdit() && pKeyEvent != null) {
final String characters = pKeyEvent.getCharacters(); final String characters = pKeyEvent.getCharacters();
for (int i = 0; i < characters.length(); i++) { for (int i = 0; i < characters.length(); i++) {