Merge "never attach null functor" into jb-dev

This commit is contained in:
John Reck
2012-04-30 13:37:05 -07:00
committed by Android (Google) Code Review

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