From: Jay Freeman (saurik) Date: Thu, 25 Nov 2010 23:40:14 +0000 (-0800) Subject: Fix -[NSNull defaultIcon] bug reported by @JakeAnthraX. X-Git-Tag: v1.1.0%b1~487 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/b9956841366cca108cde8e571dd94d02c7fc16f0 Fix -[NSNull defaultIcon] bug reported by @JakeAnthraX. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 7f053191..e2a6db31 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]];