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

Commit b6c7c8e4 authored by William Escande's avatar William Escande Committed by Gerrit Code Review
Browse files

Merge "Fix NullPointerException in BluetoothOppPereference"

parents a4f96401 a09b1995
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -102,7 +102,8 @@ public class BluetoothOppPreference {
    }

    public String getName(BluetoothDevice remoteDevice) {
        if (remoteDevice.getIdentityAddress().equals("FF:FF:FF:00:00:00")) {
        String identityAddress = remoteDevice.getIdentityAddress();
        if (identityAddress != null && identityAddress.equals("FF:FF:FF:00:00:00")) {
            return "localhost";
        }
        if (!mNames.isEmpty()) {