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

Commit a96694b4 authored by Michal Karpinski's avatar Michal Karpinski Committed by android-build-merger
Browse files

Merge "Fix an NPE when cancelling full backup in BMS#endFullBackup()" into oc-dev

am: 0d1b1a25

Change-Id: Idd633c178416ababe623f02327a830939ee769ba
parents d635fb20 0d1b1a25
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -5688,14 +5688,16 @@ public class BackupManagerService implements BackupManagerServiceInterface {
                PerformFullTransportBackupTask pftbt = null;
                synchronized (mQueueLock) {
                    if (mRunningFullBackupTask != null) {
                        if (DEBUG_SCHEDULING) {
                            Slog.i(TAG, "Telling running backup to stop");
                        }
                        pftbt = mRunningFullBackupTask;
                    }
                }
                if (pftbt != null) {
                    if (DEBUG_SCHEDULING) {
                        Slog.i(TAG, "Telling running backup to stop");
                    }
                    pftbt.handleCancel(true);
                }
            }
        };
        new Thread(endFullBackupRunnable, "end-full-backup").start();
    }