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

Commit b089636d authored by gang.huang's avatar gang.huang
Browse files

Ignore null action in SliceManagerService.

Bug: 375574021
Test: Manual.
Change-Id: I88501805ae7e830627c4f8ee2c56cdc1b563cf04
parent 9f1d7a66
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -604,6 +604,11 @@ public class SliceManagerService extends ISliceManager.Stub {
    private final BroadcastReceiver mReceiver = new BroadcastReceiver() {
        @Override
        public void onReceive(Context context, Intent intent) {
            final String action = intent.getAction();
            if (action == null) {
                Slog.w(TAG, "Intent broadcast does not contain action: " + intent);
                return;
            }
            final int userId  = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL);
            if (userId == UserHandle.USER_NULL) {
                Slog.w(TAG, "Intent broadcast does not contain user handle: " + intent);
@@ -615,7 +620,7 @@ public class SliceManagerService extends ISliceManager.Stub {
                Slog.w(TAG, "Intent broadcast does not contain package name: " + intent);
                return;
            }
            switch (intent.getAction()) {
            switch (action) {
                case Intent.ACTION_PACKAGE_REMOVED:
                    final boolean replacing =
                            intent.getBooleanExtra(Intent.EXTRA_REPLACING, false);