Bug 738331 - Remove IndexOutOfBoundsException band-aid now that we clamp bogus selection indexes. r=blassey

This commit is contained in:
Chris Peterson 2012-06-13 17:07:49 -07:00
parent 44b8cecf23
commit 652fe1a985

View File

@ -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;
}