mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 720092 - java.lang.IndexOutOfBoundsException: getChars (0 ... 88168) ends beyond length 0. We do not know why this is happening yet. This patch catches the throw and logs what values we have for start and end. r=alexp
This commit is contained in:
parent
b1d8d3137e
commit
dbc6457de2
@ -206,8 +206,16 @@ public class GeckoInputConnection
|
||||
extract.selectionEnd = b;
|
||||
|
||||
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