never attach null functor

bug:6412902

Change-Id: I26a5f80ae13cc19df3daa4d4e7e5401778f76dbb
This commit is contained in:
Chris Craik
2012-04-30 13:13:41 -07:00
parent f1790eb595
commit 1266692b30

View File

@@ -7890,7 +7890,9 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
ViewRootImpl viewRoot = mWebView.getViewRootImpl();
if (mWebView.isHardwareAccelerated() && viewRoot != null) {
functor = nativeGetDrawGLFunction(mNativeClass);
viewRoot.attachFunctor(functor);
if (functor != 0) {
viewRoot.attachFunctor(functor);
}
}
if (functor == 0