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:
Chris Bracken
2021-04-29 09:02:28 -07:00
committed by GitHub
parent 79c184ae70
commit 21df8fb73a

View File

@@ -414,7 +414,7 @@ static flutter::TextRange RangeFromBaseExtent(NSNumber* base,
}
- (void)unmarkText {
if (_activeModel != nullptr) {
if (_activeModel == nullptr) {
return;
}
_activeModel->CommitComposing();