am 44673720: Merge "Fixed NPE in EnterTransitionCoordinator" into lmp-dev

* commit '44673720ac0c4eb37f56f16d262cf5da68064fe2':
  Fixed NPE in EnterTransitionCoordinator
This commit is contained in:
George Mount
2014-09-12 18:52:13 +00:00
committed by Android Git Automerger

View File

@@ -329,7 +329,10 @@ class EnterTransitionCoordinator extends ActivityTransitionCoordinator {
@Override
public void run() {
if (mAnimations++ < MIN_ANIMATION_FRAMES) {
getDecor().postOnAnimation(this);
View decorView = getDecor();
if (decorView != null) {
decorView.postOnAnimation(this);
}
} else if (mResultReceiver != null) {
mResultReceiver.send(MSG_HIDE_SHARED_ELEMENTS, null);
mResultReceiver = null; // all done sending messages.