Add null check when logging quick switch

Test: none
Fixes: 209993127
Change-Id: I927f8969cf5ef3759b501fe1ada4d3b061b53d06
This commit is contained in:
Tony Wickham 2022-01-07 18:32:14 +00:00
parent b57235563c
commit 688148ac69
1 changed files with 3 additions and 1 deletions

View File

@ -470,7 +470,9 @@ public class TaskView extends FrameLayout implements Reusable {
stubInfo.user = componentKey.user; stubInfo.user = componentKey.user;
stubInfo.intent = new Intent().setComponent(componentKey.componentName); stubInfo.intent = new Intent().setComponent(componentKey.componentName);
stubInfo.title = task.title; stubInfo.title = task.title;
stubInfo.screenId = getRecentsView().indexOfChild(this); if (getRecentsView() != null) {
stubInfo.screenId = getRecentsView().indexOfChild(this);
}
return stubInfo; return stubInfo;
} }