From 16e5a4c4166d242bd20e80e64f32f94ca4c3dab4 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 13 Jul 2023 15:27:25 -0700 Subject: [PATCH] Fix a clang-tidy warning about a potentially nil value in the editingState dictionary --- .../darwin/macos/framework/Source/FlutterTextInputPlugin.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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], }; }