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

Commit 5923c971 authored by Christopher Tate's avatar Christopher Tate
Browse files

Fix 'dumpsys backup'

"for (Type foo : mSetOfType)" doesn't work when mSetOfType is null.

Change-Id: Iac667c7309f99b12d3147830e166b542b29cba5f
parent 1484b6d6
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2567,9 +2567,11 @@ class BackupManagerService extends IBackupManager.Stub {

            pw.println("Ancestral packages: "
                    + (mAncestralPackages == null ? "none" : mAncestralPackages.size()));
            if (mAncestralPackages != null) {
                for (String pkg : mAncestralPackages) {
                    pw.println("    " + pkg);
                }
            }

            pw.println("Ever backed up: " + mEverStoredApps.size());
            for (String pkg : mEverStoredApps) {