Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67a1c8e3 authored by Chris Craik's avatar Chris Craik
Browse files

add null check on ViewRootImpl

bug:6412902
Change-Id: I688a54731ed34283bc039a7967f472af131f458d
parent de7ff082
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7890,7 +7890,7 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
            functor = nativeGetDrawGLFunction(mNativeClass);
        }

        if (functor != 0) {
        if (functor != 0 && mWebView.getViewRootImpl()) {
            mWebView.getViewRootImpl().attachFunctor(functor);
        } else {
            // invalidate the screen so that the next repaint will show new content