Skip to content

Commit 9e2b578

Browse files
jreckAndroid (Google) Code Review
authored andcommitted
Merge "never attach null functor" into jb-dev
2 parents 8e01ee5 + 1266692 commit 9e2b578

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
@@ -7890,7 +7890,9 @@ void setNewPicture(final WebViewCore.DrawData draw, boolean updateBaseLayer) {
78907890
ViewRootImpl viewRoot = mWebView.getViewRootImpl();
78917891
if (mWebView.isHardwareAccelerated() && viewRoot != null) {
78927892
functor = nativeGetDrawGLFunction(mNativeClass);
7893-
viewRoot.attachFunctor(functor);
7893+
if (functor != 0) {
7894+
viewRoot.attachFunctor(functor);
7895+
}
78947896
}
78957897

78967898
if (functor == 0

0 commit comments

Comments
 (0)