Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 601f0c1

Browse files
Fix a clang-tidy warning about a potentially nil value in the editingState dictionary (#43660)
1 parent 8a42bfc commit 601f0c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ - (NSDictionary*)editingState {
536536
kSelectionIsDirectionalKey : @NO,
537537
kComposingBaseKey : @(composingBase),
538538
kComposingExtentKey : @(composingExtent),
539-
kTextKey : [NSString stringWithUTF8String:_activeModel->GetText().c_str()]
539+
kTextKey : [NSString stringWithUTF8String:_activeModel->GetText().c_str()] ?: [NSNull null],
540540
};
541541
}
542542

0 commit comments

Comments
 (0)