Merge "Merge "Camera: Fix null pointer access" am: e1cd25ae2c am: efe8939400 am: 4ee3891cf5" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a104f2a9e0
@@ -499,7 +499,8 @@ public class CameraServiceProxy extends SystemService
|
|||||||
|
|
||||||
if ((recentTasks != null) && (!recentTasks.getList().isEmpty())) {
|
if ((recentTasks != null) && (!recentTasks.getList().isEmpty())) {
|
||||||
for (ActivityManager.RecentTaskInfo task : recentTasks.getList()) {
|
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 = new TaskInfo();
|
||||||
taskInfo.frontTaskId = task.taskId;
|
taskInfo.frontTaskId = task.taskId;
|
||||||
taskInfo.isResizeable =
|
taskInfo.isResizeable =
|
||||||
|
|||||||
Reference in New Issue
Block a user