From f5b2f771116915d5c2a67a8bdbdcb9e5eb4ded03 Mon Sep 17 00:00:00 2001 From: Jason Knight Date: Wed, 5 Oct 2022 11:18:39 -0600 Subject: [PATCH] Fix null in android keyboard handling. (cherry picked from commit 31fe6848e89cbd60868c870e1ce80d8891fbe3a3) --- .../src/org/godotengine/godot/input/GodotTextInputWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/android/java/lib/src/org/godotengine/godot/input/GodotTextInputWrapper.java b/platform/android/java/lib/src/org/godotengine/godot/input/GodotTextInputWrapper.java index 41207c522d3..d6486277168 100644 --- a/platform/android/java/lib/src/org/godotengine/godot/input/GodotTextInputWrapper.java +++ b/platform/android/java/lib/src/org/godotengine/godot/input/GodotTextInputWrapper.java @@ -126,7 +126,7 @@ public class GodotTextInputWrapper implements TextWatcher, OnEditorActionListene @Override 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(); for (int i = 0; i < characters.length(); i++) {