DescriptionAdd null position check in SpellChecker::findFirstMisspelling
SpelChecker::findFirstMisspelling iteratively finds misspelling
from each paragraph. This patch adds null position check when
finding the next paragraph, so that it doesn't crash if the
next paragraph cannot be found (i.e., null position returned).
BUG=701309
TEST=SpellCheckerTest.AdvanceToNextMisspellingWithImageInTableNoCrash
Review-Url: https://codereview.chromium.org/2749153003
Cr-Commit-Position: refs/heads/master@{#457182}
Committed: https://chromium.googlesource.com/chromium/src/+/2a016d864e0798bef9150b0c1dbc284ba43a77fa
Patch Set 1 #Patch Set 2 : Add bug number #
Total comments: 2
Patch Set 3 : Wed Mar 15 11:10:41 PDT 2017 #
Dependent Patchsets: Messages
Total messages: 17 (12 generated)
|