Skip to content

Commit 273b8c2

Browse files
committed
Add missing null check
Change-Id: I05e288762c00d80f4c0842584daa88c205196b6f
1 parent 6dbac37 commit 273b8c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/java/android/webkit/WebViewClassic.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4362,7 +4362,9 @@ public void onDraw(Canvas canvas) {
43624362
}
43634363

43644364
private void removeTouchHighlight() {
4365-
mWebViewCore.removeMessages(EventHub.HIT_TEST);
4365+
if (mWebViewCore != null) {
4366+
mWebViewCore.removeMessages(EventHub.HIT_TEST);
4367+
}
43664368
mPrivateHandler.removeMessages(HIT_TEST_RESULT);
43674369
setTouchHighlightRects(null);
43684370
}

0 commit comments

Comments
 (0)