浏览代码

Merge pull request #66942 from winterpixelgames/3.x-bugfix-android-null-input-event

Fix null in android keyboard handling.
Fredia Huya-Kouadio 2 年之前
父节点
当前提交
d6ebb99afe
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform/android/java/lib/src/org/godotengine/godot/input/GodotTextInputWrapper.java

+ 1 - 1
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 (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++) {