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

Commit e1cd25ae authored by Emilian Peev's avatar Emilian Peev Committed by Gerrit Code Review
Browse files

Merge "Camera: Fix null pointer access"

parents 1c46ad7d 26726fc8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -487,7 +487,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 =