summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
Diffstat (limited to 'MobileCydia.mm')
-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]]);