From aa168d5c112f2752abaa8f560b63a05e1f45d592 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Thu, 7 Jun 2018 11:07:17 -0700 Subject: [PATCH] Do not execute controller callbacks, if controller is null Bug: 109812478 Change-Id: I55adc276fd894dd5f8913483984266327d7d482b --- .../src/com/android/quickstep/RecentsAnimationWrapper.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quickstep/src/com/android/quickstep/RecentsAnimationWrapper.java b/quickstep/src/com/android/quickstep/RecentsAnimationWrapper.java index 34d42ac927..b0313fc2bb 100644 --- a/quickstep/src/com/android/quickstep/RecentsAnimationWrapper.java +++ b/quickstep/src/com/android/quickstep/RecentsAnimationWrapper.java @@ -49,6 +49,9 @@ public class RecentsAnimationWrapper { this.mController = controller; this.targetSet = targetSet; + if (controller == null) { + return; + } if (mInputConsumerEnabled) { enableInputConsumer(); }