mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 738331 - Remove IndexOutOfBoundsException band-aid now that we clamp bogus selection indexes. r=blassey
This commit is contained in:
parent
44b8cecf23
commit
652fe1a985
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user