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

Commit 4674d257 authored by Ryan Mitchell's avatar Ryan Mitchell Committed by Automerger Merge Worker
Browse files

Merge "Guard against null info when applying widget RROs" into sc-dev am: 1561c6ac

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15543977

Change-Id: I642a7941375a2e03d1061aafd8a508287e07d132
parents f4d976b5 1561c6ac
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -3306,11 +3306,12 @@ class AppWidgetServiceImpl extends IAppWidgetService.Stub implements WidgetBacku
                Slog.w(TAG, "Failed to retrieve app info for " + packageName
                Slog.w(TAG, "Failed to retrieve app info for " + packageName
                        + " userId=" + userId, e);
                        + " userId=" + userId, e);
            }
            }
            if (newAppInfo == null) {
            if (newAppInfo == null || provider.info == null
                    || provider.info.providerInfo == null) {
                continue;
                continue;
            }
            }
            ApplicationInfo oldAppInfo = provider.info.providerInfo.applicationInfo;
            ApplicationInfo oldAppInfo = provider.info.providerInfo.applicationInfo;
            if (!newAppInfo.sourceDir.equals(oldAppInfo.sourceDir)) {
            if (oldAppInfo == null || !newAppInfo.sourceDir.equals(oldAppInfo.sourceDir)) {
                // Overlay paths are generated against a particular version of an application.
                // Overlay paths are generated against a particular version of an application.
                // The overlays paths of a newly upgraded application are incompatible with the
                // The overlays paths of a newly upgraded application are incompatible with the
                // old version of the application.
                // old version of the application.