Correct an inverted null pointer check (flutter/engine#25828)
In unmarkText, we want to prevent dereferencing _activeModel if it's null.
This commit is contained in:
@@ -414,7 +414,7 @@ static flutter::TextRange RangeFromBaseExtent(NSNumber* base,
|
||||
}
|
||||
|
||||
- (void)unmarkText {
|
||||
if (_activeModel != nullptr) {
|
||||
if (_activeModel == nullptr) {
|
||||
return;
|
||||
}
|
||||
_activeModel->CommitComposing();
|
||||
|
||||
Reference in New Issue
Block a user