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

Commit 682aa909 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix potential NPE in CompanionDeviceDiscoveryService" into sc-dev

parents 4c09aa41 c23bcac7
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()));