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

Commit 8d7fc246 authored by gang.huang's avatar gang.huang Committed by gang huang
Browse files

Ignore null action in BackgroundJobsController.

Bug: 376146715
Test: Manual.
Change-Id: Ic7cff5e8771a95f50f61752f16f84ebd309d8733
parent a022a844
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -84,9 +84,13 @@ public final class BackgroundJobsController extends StateController {
    private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() {
        @Override
        public void onReceive(Context context, Intent intent) {
            final String action = intent.getAction();
            if (action == null) {
                return;
            }

            final String pkgName = getPackageName(intent);
            final int pkgUid = intent.getIntExtra(Intent.EXTRA_UID, -1);
            final String action = intent.getAction();
            if (pkgUid == -1) {
                Slog.e(TAG, "Didn't get package UID in intent (" + action + ")");
                return;