From db4c5360bf08a7272e99161a7ced458ce9b827c4 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 13 Jul 2023 16:09:26 -0700 Subject: [PATCH] Fix a clang-tidy warning about a potentially nil value in the editingState dictionary (flutter/engine#43660) --- .../darwin/macos/framework/Source/FlutterTextInputPlugin.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm index e249cd5601..f6460f2309 100644 --- a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm +++ b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm @@ -536,7 +536,7 @@ static char markerKey; kSelectionIsDirectionalKey : @NO, kComposingBaseKey : @(composingBase), kComposingExtentKey : @(composingExtent), - kTextKey : [NSString stringWithUTF8String:_activeModel->GetText().c_str()] + kTextKey : [NSString stringWithUTF8String:_activeModel->GetText().c_str()] ?: [NSNull null], }; }