From eece34ea416210253e6339827c0bd463f399d9d8 Mon Sep 17 00:00:00 2001 From: Ricardo Cerqueira Date: Sat, 26 Jan 2013 17:25:36 +0000 Subject: ShortcutInfo: Don't assume all stringified items have a title Changes to some activities (some removals due to missing apps or layout changes, for instance) result in icon updates for items without a title. Attempting to stringify the item object in order to log the update and assuming a title was present was resulting in a NPE Change-Id: I414bbb7feaf41d13a82c630a5652a3833b12a2fc --- src/com/cyanogenmod/trebuchet/ShortcutInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/cyanogenmod') diff --git a/src/com/cyanogenmod/trebuchet/ShortcutInfo.java b/src/com/cyanogenmod/trebuchet/ShortcutInfo.java index b1db3ec35..9d5455cc8 100644 --- a/src/com/cyanogenmod/trebuchet/ShortcutInfo.java +++ b/src/com/cyanogenmod/trebuchet/ShortcutInfo.java @@ -175,7 +175,7 @@ class ShortcutInfo extends ItemInfo { @Override public String toString() { - return "ShortcutInfo(title=" + title.toString() + "intent=" + intent + "id=" + this.id + return "ShortcutInfo(title=" + (title != null ? title.toString() : "unkown ") + "intent=" + intent + "id=" + this.id + " type=" + this.itemType + " container=" + this.container + " screen=" + screen + " cellX=" + cellX + " cellY=" + cellY + " spanX=" + spanX + " spanY=" + spanY + " dropPos=" + Arrays.toString(dropPos) + ")"; -- cgit v1.2.3