Skip to content

Commit

Permalink
Handle null values in TextInputConfiguration.actionLabel JSON (flutte…
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-simmons authored and RBogie committed Apr 8, 2019
1 parent ae8815d commit 67fcc69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
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 67fcc69

Please sign in to comment.