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

Commit cf705cf8 authored by Guojing Yuan's avatar Guojing Yuan Committed by Automerger Merge Worker
Browse files

[CDM Perm Sync] Fix a NPE for Perm Sync toggle am: 8c51d9c7

parents e0cce7bf 8c51d9c7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -65,6 +65,7 @@ public class BluetoothDetailsDataSyncController extends BluetoothDetailsControll
        mCompanionDeviceManager = context.getSystemService(CompanionDeviceManager.class);

        mCompanionDeviceManager.getAllAssociations().stream().filter(
                a -> a.getDeviceMacAddress() != null).filter(
                a -> Objects.equal(mCachedDevice.getAddress(),
                        a.getDeviceMacAddress().toString().toUpperCase())).max(
                Comparator.comparingLong(AssociationInfo::getTimeApprovedMs)).ifPresent(