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

Commit 63196c5f authored by Gustav Sennton's avatar Gustav Sennton Committed by Android (Google) Code Review
Browse files

Merge "Add null-pointer check for the case where we have no WebView provider."

parents 5e044fb6 6ced4c95
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -710,6 +710,10 @@ public class DevelopmentSettings extends SettingsPreferenceFragment
            IWebViewUpdateService.Stub.asInterface(ServiceManager.getService("webviewupdate"));
        try {
            WebViewProviderInfo[] providers = webViewUpdateService.getValidWebViewPackages();
            if (providers == null) {
                Log.e(TAG, "No WebView providers available");
                return;
            }
            String[] options = new String[providers.length];
            String[] values = new String[providers.length];
            for(int n = 0; n < providers.length; n++) {