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

Commit aaad5deb authored by Wang Han's avatar Wang Han
Browse files

Add a missing NULL check for postActivityStartTokenRemoval()

 * filter.receiverList.app can actually be null here. Don't pass
   a null ProcessRecord to postActivityStartTokenRemoval().

Change-Id: I923f424fcb05b3956bf14728e9d0c0e48666294d
parent 4ea84f0b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -809,7 +809,8 @@ public final class BroadcastQueue {
                        r.resultExtras, r.ordered, r.initialSticky, r.userId);
                // parallel broadcasts are fire-and-forget, not bookended by a call to
                // finishReceiverLocked(), so we manage their activity-start token here
                if (r.allowBackgroundActivityStarts && !r.ordered) {
                if (filter.receiverList.app != null
                        && r.allowBackgroundActivityStarts && !r.ordered) {
                    postActivityStartTokenRemoval(filter.receiverList.app, r);
                }
            }