commit | 4cdeeadd42bc11f6f5f60f5301c09025cabfc65f | [log] [tgz] |
---|---|---|
author | Roozbeh Pournader <roozbeh@google.com> | Wed Mar 11 11:09:34 2015 -0700 |
committer | Roozbeh Pournader <roozbeh@google.com> | Wed Mar 11 11:09:34 2015 -0700 |
tree | 260eb1bfb335bfea68534ebab5dc68a6a4e7a0a7 | |
parent | 5f035052b63e7a7a99bed64fe3b310b69fcb022d [diff] |
Add a check for invalid spans being set by SpellChecker. One of the exit conditions of the loop immediately above the code is when a BreakIterator finishes its input and emits BreakIterator.DONE, which we were then mistakenly then using as a parameter for setting spans. Bug: 12936072 Bug: 5555929 Change-Id: Ib4aba113f2e7838cd040076160c1dd0fb90adb1a