Skip to content

Commit 04144a8

Browse files
jreckAndroid (Google) Code Review
authored andcommitted
Merge "add null check on ViewRootImpl" into jb-dev
2 parents 79c6346 + 67a1c8e commit 04144a8

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)