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

Commit 204e1567 authored by sunxiang's avatar sunxiang Committed by Chris Manton
Browse files

Prevent NPE for MAP profile



Root cause:
addr allow null in address column

Sponsor:cmanton@
Test: Conforms to Java string equality conventions
Tag: #stability
Bug: 201536512

Signed-off-by: default avatarsunxiang <sunxiang@xiaomi.com>
Change-Id: I9f285115ea2851078843192349705a382e5c5461
parent 2e3ed0d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1516,7 +1516,7 @@ public class BluetoothMapContent {
            if (c != null) {
                if (c.moveToFirst()) {
                    addr = c.getString(colIndex);
                    if (addr.equals(INSERT_ADDRES_TOKEN)) {
                    if (INSERT_ADDRES_TOKEN.equals(addr)) {
                        addr = "";
                    }
                }