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

Fix null in android keyboard handling.
This commit is contained in:
Fredia Huya-Kouadio 2022-10-05 10:52:49 -07:00 committed by GitHub
commit d6ebb99afe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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++) {