Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8db834d4 authored by Adnan Begovic's avatar Adnan Begovic Committed by Steve Kondik
Browse files

SystemUI: Check if a task's group is null prior to TaskGrouping#isFrontMostTask.

    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean
    com.android.systemui.recents.model.TaskGrouping.isFrontMostTask(com.android.systemui.recents.model.Task)' on a null object reference
      at com.android.systemui.recents.views.RecentsView.onTaskViewClicked(RecentsView.java:535)
      at com.android.systemui.recents.views.TaskStackView.onTaskViewClicked(TaskStackView.java:1125)
      at com.android.systemui.recents.views.TaskView.onClick(TaskView.java:881)
      at android.view.View.performClick(View.java:4756)
      at android.view.View$PerformClick.run(View.java:19749)
      at android.os.Handler.handleCallback(Handler.java:739)
      at android.os.Handler.dispatchMessage(Handler.java:95)

Change-Id: I04afec21a7c4e7ba5b3e51ae76a2065e98e6cfa2
parent 34c2329e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -558,7 +558,7 @@ public class RecentsView extends FrameLayout implements TaskStackView.TaskStackV
        if (tv == null) {
            launchRunnable.run();
        } else {
            if (!task.group.isFrontMostTask(task)) {
            if (task.group != null && !task.group.isFrontMostTask(task)) {
                // For affiliated tasks that are behind other tasks, we must animate the front cards
                // out of view before starting the task transition
                stackView.startLaunchTaskAnimation(tv, launchRunnable, lockToTask);