소스 검색

Fix null in android keyboard handling.

Jason Knight 2 년 전
부모
커밋
31fe6848e8
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++) {