diff --git a/shell/platform/android/io/flutter/embedding/engine/systemchannels/TextInputChannel.java b/shell/platform/android/io/flutter/embedding/engine/systemchannels/TextInputChannel.java index b23d33fd00996..728ae40797775 100644 --- a/shell/platform/android/io/flutter/embedding/engine/systemchannels/TextInputChannel.java +++ b/shell/platform/android/io/flutter/embedding/engine/systemchannels/TextInputChannel.java @@ -242,7 +242,7 @@ public static Configuration fromJson(@NonNull JSONObject json) throws JSONExcept TextCapitalization.fromValue(json.getString("textCapitalization")), InputType.fromJson(json.getJSONObject("inputType")), inputAction, - json.optString("actionLabel") + json.isNull("actionLabel") ? null : json.getString("actionLabel") ); }