Merge "Fix an NPE when cancelling full backup in BMS#endFullBackup()" into oc-dev
am: 0d1b1a253a
Change-Id: Idd633c178416ababe623f02327a830939ee769ba
This commit is contained in:
@@ -5688,13 +5688,15 @@ 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;
|
||||
}
|
||||
}
|
||||
pftbt.handleCancel(true);
|
||||
if (pftbt != null) {
|
||||
if (DEBUG_SCHEDULING) {
|
||||
Slog.i(TAG, "Telling running backup to stop");
|
||||
}
|
||||
pftbt.handleCancel(true);
|
||||
}
|
||||
}
|
||||
};
|
||||
new Thread(endFullBackupRunnable, "end-full-backup").start();
|
||||
|
||||
Reference in New Issue
Block a user