Skip to content

Commit

Permalink
Fix a clang-tidy warning about a potentially nil value in the editing…
Browse files Browse the repository at this point in the history
…State dictionary (flutter#43660)
  • Loading branch information
jason-simmons authored and kjlubick committed Jul 14, 2023
1 parent d112fd5 commit 0e27397
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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],
};
}

Expand Down

0 comments on commit 0e27397

Please sign in to comment.