summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2012-03-31 13:03:47 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2012-03-31 13:03:47 -0700
commit5e17a7344aeaea01178fa53bd69fab5baef75f73 (patch)
tree66b26befc4912b491c50157675f9da30cc6aa2b2
parentcaf0475e7bc0140ca3e99e4a51fb97556e0be523 (diff)
Fix the bug Optimo reported with CFBundleIconFile.
-rw-r--r--MobileCydia.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index fc38970..bd18af1 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -2885,7 +2885,8 @@ struct PackageNameOrdering :
NSString *bundle([file stringByDeletingLastPathComponent]);
NSString *icon([info objectForKey:@"CFBundleIconFile"]);
- if (icon == nil || [icon length] == 0)
+ // XXX: maybe this should check if this is really a string, not just for length
+ if (icon == nil || ![icon respondsToSelector:@selector(length)] || [icon length] == 0)
icon = @"icon.png";
NSURL *url([NSURL fileURLWithPath:[bundle stringByAppendingPathComponent:icon]]);