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

Commit c98bb6b0 authored by Rongxuan Liu's avatar Rongxuan Liu
Browse files

Add null check in mActiveDeviceManager cleanup

Tag: #bug
Flag: Exempt, test null check only
Bug: 336588993
Test: atest ActiveDeviceManagerTest
Change-Id: I959496b527689edcf45504c0412d07f29f3ce1ee
parent b4d86ee0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -191,7 +191,9 @@ public class ActiveDeviceManagerTest {
    public void tearDown() throws Exception {
        mTestLooper.stopAutoDispatchAndIgnoreExceptions();
        BluetoothMethodProxy.setInstanceForTesting(null);
        if (mActiveDeviceManager != null) {
            mActiveDeviceManager.cleanup();
        }
        TestUtils.clearAdapterService(mAdapterService);
        Utils.setDualModeAudioStateForTesting(mOriginalDualModeAudioState);
    }