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

Commit d4324aa1 authored by John Reck's avatar John Reck
Browse files

NPE guard in setupViewport

 Bug: 4163660

Change-Id: Ie74072094c0dbfca4391cf898420544884101c1f
parent 2ad31117
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2245,6 +2245,10 @@ public final class WebViewCore {
    }

    private void setupViewport(boolean updateViewState) {
        if (mWebView == null || mSettings == null) {
            // We've been destroyed or are being destroyed, return early
            return;
        }
        // set the viewport settings from WebKit
        setViewportSettingsFromNative();