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

Commit d3b21f91 authored by Yi Kong's avatar Yi Kong
Browse files

profcollect: Fix possible NPE in ProfcollectBGJobService

The native service might have died, in which case, abort.

Test: presubmit
Bug: 246660820
Change-Id: I171a0031db104d2c008ee7ef9709f15f76d70b1a
parent f63f20af
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -218,6 +218,9 @@ public final class ProfcollectForwardingService extends SystemService {
            BackgroundThread.get().getThreadHandler().post(
                    () -> {
                        try {
                            if (sSelfService.mIProfcollect == null) {
                                return;
                            }
                            sSelfService.mIProfcollect.process();
                        } catch (RemoteException e) {
                            Log.e(LOG_TAG, "Failed to process profiles in background: "