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

Commit ec229e79 authored by Raphael Kim's avatar Raphael Kim
Browse files

[CDM] Prevent NPE when CompanionAssociationActivity is destroyed by user...

[CDM] Prevent NPE when CompanionAssociationActivity is destroyed by user cancellation before `onStart()` is called.

Bug: 396616085
Change-Id: I2eebef54ef7a5467f81a62b5076188ceba1d6c56
Test: m
Flag: EXEMPT bug fix
parent b9a9cd5f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -452,7 +452,7 @@ public class CompanionAssociationActivity extends FragmentActivity implements
    }

    private void stopDiscovery() {
        if (!mRequest.isSelfManaged()) {
        if (mRequest != null && !mRequest.isSelfManaged()) {
            CompanionDeviceDiscoveryService.stop(this);
        }
    }