diff --git a/quickstep/src/com/android/quickstep/views/FloatingWidgetView.java b/quickstep/src/com/android/quickstep/views/FloatingWidgetView.java index 6431bdf5aa..486fc2cf08 100644 --- a/quickstep/src/com/android/quickstep/views/FloatingWidgetView.java +++ b/quickstep/src/com/android/quickstep/views/FloatingWidgetView.java @@ -305,7 +305,8 @@ public class FloatingWidgetView extends FrameLayout implements AnimatorListener, */ public static int getDefaultBackgroundColor( Context context, RemoteAnimationTarget target) { - return (target != null && target.taskInfo.taskDescription != null) + return (target != null && target.taskInfo != null + && target.taskInfo.taskDescription != null) ? target.taskInfo.taskDescription.getBackgroundColor() : Themes.getColorBackground(context); }