Skip to content

Commit 32f038d

Browse files
George MountAndroid (Google) Code Review
authored andcommitted
Merge "Check for null mWebViewCore in selectText"
2 parents 9c6b01a + 07c9e29 commit 32f038d

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)