Fix a clang-tidy warning about a potentially nil value in the editingState dictionary (flutter/engine#43660)
This commit is contained in:
@@ -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],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user