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

Commit b139406d authored by Guojing Yuan's avatar Guojing Yuan
Browse files

[CDM PS] Fix an NPE when the device is not associated

Bug: 290063372

Test: manually tested
Change-Id: Ifd55e2849ebaff1340fdf9e61edd75971187e12b
parent ccb414d8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -112,6 +112,11 @@ public class BluetoothDetailsDataSyncController extends BluetoothDetailsControll
            mPreferenceCategory.addPreference(permSyncPref);
        }

        if (mAssociationId == DUMMY_ASSOCIATION_ID) {
            permSyncPref.setVisible(false);
            return;
        }

        boolean visible = false;
        boolean checked = false;
        PermissionSyncRequest request = mCompanionDeviceManager.getPermissionSyncRequest(