Skip to content

Commit 67a1c8e

Browse files
committed
add null check on ViewRootImpl
bug:6412902 Change-Id: I688a54731ed34283bc039a7967f472af131f458d
1 parent de7ff08 commit 67a1c8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/webkit/WebViewClassic.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7890,7 +7890,7 @@ void setNewPicture(final WebViewCore.DrawData draw, boolean updateBaseLayer) {
78907890
functor = nativeGetDrawGLFunction(mNativeClass);
78917891
}
78927892

7893-
if (functor != 0) {
7893+
if (functor != 0 && mWebView.getViewRootImpl()) {
78947894
mWebView.getViewRootImpl().attachFunctor(functor);
78957895
} else {
78967896
// invalidate the screen so that the next repaint will show new content

0 commit comments

Comments
 (0)