Merge "Merge "Camera: Fix null pointer access" am: e1cd25ae2c am: efe8939400 am: 4ee3891cf5" into udc-dev

This commit is contained in:
Automerger Merge Worker
2023-03-09 21:29:31 +00:00
committed by Android (Google) Code Review

View File

@@ -499,7 +499,8 @@ public class CameraServiceProxy extends SystemService
if ((recentTasks != null) && (!recentTasks.getList().isEmpty())) {
for (ActivityManager.RecentTaskInfo task : recentTasks.getList()) {
if (packageName.equals(task.topActivityInfo.packageName)) {
if (task.topActivityInfo != null && packageName.equals(
task.topActivityInfo.packageName)) {
taskInfo = new TaskInfo();
taskInfo.frontTaskId = task.taskId;
taskInfo.isResizeable =