зеркало из https://github.com/mozilla/gecko-dev.git
Bug 738331 - Remove IndexOutOfBoundsException band-aid now that we clamp bogus selection indexes. r=blassey
This commit is contained in:
Родитель
38d0576332
Коммит
93cf7a16da
|
@ -230,16 +230,8 @@ public class GeckoInputConnection
|
|||
extract.selectionStart = Selection.getSelectionStart(content);
|
||||
extract.selectionEnd = Selection.getSelectionEnd(content);
|
||||
extract.startOffset = 0;
|
||||
extract.text = content.toString();
|
||||
|
||||
try {
|
||||
extract.text = content.toString();
|
||||
} catch (IndexOutOfBoundsException iob) {
|
||||
Log.d(LOGTAG,
|
||||
"IndexOutOfBoundsException thrown from getExtractedText(). start: "
|
||||
+ Selection.getSelectionStart(content)
|
||||
+ " end: " + Selection.getSelectionEnd(content));
|
||||
return null;
|
||||
}
|
||||
return extract;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче