diff options
Diffstat (limited to 'services/core')
-rwxr-xr-x | services/core/java/com/android/server/am/ActivityRecord.java | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/services/core/java/com/android/server/am/ActivityRecord.java b/services/core/java/com/android/server/am/ActivityRecord.java index 198273e..1a0e45e 100755 --- a/services/core/java/com/android/server/am/ActivityRecord.java +++ b/services/core/java/com/android/server/am/ActivityRecord.java @@ -205,17 +205,20 @@ final class ActivityRecord { pw.print(" resultWho="); pw.print(resultWho); pw.print(" resultCode="); pw.println(requestCode); } - final String iconFilename = taskDescription.getIconFilename(); - if (iconFilename != null || taskDescription.getLabel() != null || - taskDescription.getPrimaryColor() != 0) { - pw.print(prefix); pw.print("taskDescription:"); - pw.print(" iconFilename="); pw.print(taskDescription.getIconFilename()); - pw.print(" label=\""); pw.print(taskDescription.getLabel()); pw.print("\""); - pw.print(" color="); - pw.println(Integer.toHexString(taskDescription.getPrimaryColor())); - } - if (iconFilename == null && taskDescription.getIcon() != null) { - pw.print(prefix); pw.println("taskDescription contains Bitmap"); + if (taskDescription != null) { + final String iconFilename = taskDescription.getIconFilename(); + if (iconFilename != null || taskDescription.getLabel() != null || + taskDescription.getPrimaryColor() != 0) { + pw.print(prefix); pw.print("taskDescription:"); + pw.print(" iconFilename="); pw.print(taskDescription.getIconFilename()); + pw.print(" label=\""); pw.print(taskDescription.getLabel()); + pw.print("\""); + pw.print(" color="); + pw.println(Integer.toHexString(taskDescription.getPrimaryColor())); + } + if (iconFilename == null && taskDescription.getIcon() != null) { + pw.print(prefix); pw.println("taskDescription contains Bitmap"); + } } if (results != null) { pw.print(prefix); pw.print("results="); pw.println(results); |