Fix NPE pointed out by Chet.

Change-Id: Id421476aa6f6ff281054b435ecd09f932966305c
This commit is contained in:
Dianne Hackborn
2010-12-28 14:17:18 -08:00
parent d173fa3b1c
commit 1b39e221e2

View File

@ -827,8 +827,9 @@ final class FragmentManagerImpl extends FragmentManager {
// animation right now -- it is not needed,
// and we can't wait any more on destroying
// the fragment.
Animator anim = f.mAnimatingAway;
f.mAnimatingAway = null;
f.mAnimatingAway.cancel();
anim.cancel();
}
}
if (f.mAnimatingAway != null) {