From: Jay Freeman (saurik) Date: Thu, 25 Nov 2010 23:40:14 +0000 (-0800) Subject: Fix -[NSNull defaultIcon] bug reported by @JakeAnthraX. X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/a3eb1499c74a525f0e1f1ed46bf2221e2d993542 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]];