diff --git a/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm b/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm index e249cd5601be6..f6460f2309f37 100644 --- a/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm +++ b/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm @@ -536,7 +536,7 @@ - (NSDictionary*)editingState { kSelectionIsDirectionalKey : @NO, kComposingBaseKey : @(composingBase), kComposingExtentKey : @(composingExtent), - kTextKey : [NSString stringWithUTF8String:_activeModel->GetText().c_str()] + kTextKey : [NSString stringWithUTF8String:_activeModel->GetText().c_str()] ?: [NSNull null], }; }