Handle null values in TextInputConfiguration.actionLabel JSON (flutter/engine#8377)
Fixes https://github.com/flutter/flutter/issues/29798
This commit is contained in:
@@ -242,7 +242,7 @@ public class TextInputChannel {
|
||||
TextCapitalization.fromValue(json.getString("textCapitalization")),
|
||||
InputType.fromJson(json.getJSONObject("inputType")),
|
||||
inputAction,
|
||||
json.optString("actionLabel")
|
||||
json.isNull("actionLabel") ? null : json.getString("actionLabel")
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user