From 5e17a7344aeaea01178fa53bd69fab5baef75f73 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 31 Mar 2012 13:03:47 -0700 Subject: [PATCH] Fix the bug Optimo reported with CFBundleIconFile. --- MobileCydia.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index fc38970f..bd18af14 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]]); -- 2.45.2