summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorJason Knight <jason@winterpixel.com>2022-10-05 11:17:02 -0600
committerJason Knight <jason@winterpixel.com>2022-10-05 11:17:02 -0600
commit88df3e8d53a4494b6cbb2aa643b64cdfaca2c4bc (patch)
tree7d073522f0e8ca11ce4fefecd9ffd128cb37507c /platform/android
parent57ffc4d82c773a513c8d122d859f07759c8c7da3 (diff)
Fix null in android keyboard handling.
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/java/lib/src/org/godotengine/godot/input/GodotTextInputWrapper.java2
1 files changed, 1 insertions, 1 deletions
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 c959b5f28c..01ad5ee415 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
@@ -122,7 +122,7 @@ public class GodotTextInputWrapper implements TextWatcher, OnEditorActionListene
@Override
public boolean onEditorAction(final TextView pTextView, final int pActionID, final KeyEvent pKeyEvent) {
- if (mEdit == pTextView && isFullScreenEdit()) {
+ if (mEdit == pTextView && isFullScreenEdit() && pKeyEvent != null) {
final String characters = pKeyEvent.getCharacters();
for (int i = 0; i < characters.length(); i++) {