Skip to content

Commit 1266692

Browse files
committed
never attach null functor
bug:6412902 Change-Id: I26a5f80ae13cc19df3daa4d4e7e5401778f76dbb
1 parent f1790eb commit 1266692

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)