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

Commit 8c9b37fe authored by Ajay Panicker's avatar Ajay Panicker Committed by android-build-merger
Browse files

Prevent NPE if someone creates a bad BluetoothHealthAppConfig object am: 74fa2d68 am: 26803036

am: e6558c2a

Change-Id: I7f1ecb3ec7d0a02deff5fa0782966a0528e54098
parents 6b6fc563 e6558c2a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -68,7 +68,9 @@ public final class BluetoothHealthAppConfiguration implements Parcelable {
    public boolean equals(Object o) {
        if (o instanceof BluetoothHealthAppConfiguration) {
            BluetoothHealthAppConfiguration config = (BluetoothHealthAppConfiguration) o;
            // config.getName() can never be NULL

            if (mName == null) return false;

            return mName.equals(config.getName()) &&
                    mDataType == config.getDataType() &&
                    mRole == config.getRole() &&