OSDN Git Service

Check for source activity's task presence before referencing.
authorBryce Lee <brycelee@google.com>
Mon, 22 May 2017 22:57:24 +0000 (15:57 -0700)
committerBryce Lee <brycelee@google.com>
Tue, 30 May 2017 15:44:03 +0000 (08:44 -0700)
commitd9ed45d07af362365a6341babc2ac9822f3e992d
tree094a5c1410c8807829e2b7c49473046576344d88
parent0b1b1c434650d2f272be7610027d4ddd948715a8
Check for source activity's task presence before referencing.

ActivityStarter guards in all other spots for a null task in the
source activity, which can be the case if said activity is finishing.

This changelist adds the same check to the code when processing a
finishing source.

Change-Id: I78c284f45d96348767d06bb6ce0d78d6b77cb0ad
Fixes: 37428712
Test: manual testing & code inspection
Test: go/wm-smoke
services/core/java/com/android/server/am/ActivityStarter.java