Skip to content

Commit

Permalink
Handle null values in TextInputConfiguration.actionLabel JSON (#8377)
Browse files Browse the repository at this point in the history
Fixes #29798
  • Loading branch information
jason-simmons committed Mar 30, 2019
1 parent d0239bd commit ca7623e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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")
);
}

Expand Down

0 comments on commit ca7623e

Please sign in to comment.