profcollect: Fix possible NPE in ProfcollectBGJobService
The native service might have died, in which case, abort. Test: presubmit Bug: 246660820 Change-Id: I171a0031db104d2c008ee7ef9709f15f76d70b1a
This commit is contained in:
@@ -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: "
|
||||
|
||||
Reference in New Issue
Block a user