Skip to content

Commit 07c9e29

Browse files
author
George Mount
committed
Check for null mWebViewCore in selectText
Bug 6306770 Change-Id: I83e70aef45ff6519e4e9eb70edae44efcecf6de8
1 parent 8b0d90e commit 07c9e29

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/java/android/webkit/WebViewClassic.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4677,6 +4677,9 @@ public boolean selectText() {
46774677
* Select the word at the indicated content coordinates.
46784678
*/
46794679
boolean selectText(int x, int y) {
4680+
if (mWebViewCore == null) {
4681+
return false;
4682+
}
46804683
mWebViewCore.sendMessage(EventHub.SELECT_WORD_AT, x, y);
46814684
return true;
46824685
}

0 commit comments

Comments
 (0)