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

Commit c1cb0730 authored by Edgar Arriaga's avatar Edgar Arriaga Committed by Edgar Arriaga García
Browse files

Fix for NPE in webview test

Bug: 319221140
Test: atest WebViewUpdateServiceTest

Change-Id: Ic1dfe8720064f32a2313a94aadc6956b2da7c820
parent 7bac0f0a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -348,6 +348,10 @@ class WebViewUpdateServiceImpl implements WebViewUpdateServiceInterface {

    private void pinWebviewIfRequired(ApplicationInfo appInfo) {
        PinnerService pinnerService = LocalServices.getService(PinnerService.class);
        if (pinnerService == null) {
            // This happens in unit tests which do not have services.
            return;
        }
        int webviewPinQuota = pinnerService.getWebviewPinQuota();
        if (webviewPinQuota <= 0) {
            return;