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

Commit 18db3f49 authored by Eugene Susla's avatar Eugene Susla
Browse files

Fix NPE in CDM UI

Test: atest CompanionDeviceManagerTest
Change-Id: I19b5a29b0e3d8a048219806810d7e35eae6d767c
parent d27ed1bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -143,7 +143,7 @@ public class CompanionDeviceActivity extends Activity {
    }

    static void notifyDevicesChanged() {
        if (sInstance != null && !sInstance.isFinishing()) {
        if (sInstance != null && sInstance.mDevicesAdapter != null && !sInstance.isFinishing()) {
            sInstance.mDevicesAdapter.notifyDataSetChanged();
        }
    }