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

Commit 43383045 authored by Christopher Tate's avatar Christopher Tate
Browse files

Don't NPE if a restore session is requested for an invalid transport

parent 9ba6998b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1490,7 +1490,9 @@ class BackupManagerService extends IBackupManager.Stub {

            try {
            synchronized(this) {
                if (mRestoreSets == null) {
                if (mRestoreTransport == null) {
                    Log.w(TAG, "Null transport getting restore sets");
                } else if (mRestoreSets == null) { // valid transport; do the one-time fetch
                    mRestoreSets = mRestoreTransport.getAvailableRestoreSets();
                }
                return mRestoreSets;