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

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

Don't crash on transport unregistration if there is no current transport

Change-Id: Icd0962254ba224a7be27d408dffb25b634f67863
parent 239d5b36
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -641,7 +641,7 @@ class BackupManagerService extends IBackupManager.Stub {
                mTransports.put(name, transport);
            } else {
                mTransports.remove(name);
                if (mCurrentTransport.equals(name)) {
                if ((mCurrentTransport != null) && mCurrentTransport.equals(name)) {
                    mCurrentTransport = null;
                }
                // Nothing further to do in the unregistration case