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

Commit 7b727862 authored by Matadeen Mishra's avatar Matadeen Mishra Committed by Linux Build Service Account
Browse files

Settings App: Fix to resolve NULL pointer exceptions

This fix resolves any NULL pointer exceptions and
Array Index Out of Bounds exceptions seen in
Settings Application code space.

Change-Id: Ib478a1460910a2eb34b308c94cec9817bab93b34
CRs-Fixed: 908156
parent f7129a7d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -262,7 +262,11 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem
        }

        mLocalManager.getCachedDeviceManager().clearNonBondedDevices();
        if (mAvailableDevicesCategory != null) {
            mAvailableDevicesCategory.removeAll();
        } else {
              Log.e(TAG, "mAvailableDevicesCategory is null.");
        }
        mInitialScanStarted = true;
        mLocalAdapter.startScanning(true);
    }
+4 −1
Original line number Diff line number Diff line
@@ -232,7 +232,10 @@ public final class DeviceProfilesSettings extends DialogFragment implements
    public void onClick(View v) {
        if (v instanceof CheckBox) {
            LocalBluetoothProfile prof = getProfileOf(v);
            if (prof != null)
                onProfileClicked(prof, (CheckBox) v);
            else
                Log.e(TAG, "Error: Can't get the profile for the preference");
        }
    }