From b9956841366cca108cde8e571dd94d02c7fc16f0 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 25 Nov 2010 15:40:14 -0800 Subject: Fix -[NSNull defaultIcon] bug reported by @JakeAnthraX. --- MobileCydia.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index 7f05319..e2a6db3 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -2448,7 +2448,7 @@ struct PackageNameOrdering : icon = [UIImage imageAtPath:[static_cast(icon_) substringFromIndex:7]]; if (icon == nil) if (section != nil) icon = [UIImage imageAtPath:[NSString stringWithFormat:@"%@/Sections/%@.png", App_, section]]; - if (icon == nil) if (source_ != nil) if (NSString *dicon = [source_ defaultIcon]) + if (icon == nil) if (Source *source = [self source]) if (NSString *dicon = [source defaultIcon]) if ([dicon hasPrefix:@"file:///"]) // XXX: correct escaping icon = [UIImage imageAtPath:[dicon substringFromIndex:7]]; -- cgit v1.2.3