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

Commit 24e80c4a authored by greg_huang's avatar greg_huang Committed by Jack He
Browse files

PBAP: Check for null in isNameMatchTarget

Bug: 62361842
Test: make, PTS test by vendor
Change-Id: Ie9861931c93cb0ff26f86a2fdfa5aa1e3083d81a
parent 9fa08795
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -478,6 +478,7 @@ public class BluetoothPbapObexServer extends ServerRequestHandler {
    }

    private boolean isNameMatchTarget(String name, String target) {
        if (name == null) return false;
        String contentTypeName = name;
        if (contentTypeName.endsWith(".vcf")) {
            contentTypeName = contentTypeName