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

Commit c23bcac7 authored by Guojing Yuan's avatar Guojing Yuan
Browse files

Fix potential NPE in CompanionDeviceDiscoveryService

Fix: 192768781

Test: N/A
Change-Id: I8f4f0f9ecc4ffd9b366294e2b2bd263297122acd
parent 5b541728
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -317,6 +317,9 @@ public class CompanionDeviceDiscoveryService extends Service {
    }

    void onDeviceSelected(String callingPackage, String deviceAddress) {
        if (callingPackage == null || deviceAddress == null) {
            return;
        }
        mServiceCallback.complete(new Association(
                getUserId(), deviceAddress, callingPackage, mRequest.getDeviceProfile(), false,
                System.currentTimeMillis()));