]> git.saurik.com Git - cydia.git/commitdiff
Fix -[NSNull defaultIcon] bug reported by @JakeAnthraX.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 25 Nov 2010 23:40:14 +0000 (15:40 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 25 Nov 2010 23:40:14 +0000 (15:40 -0800)
MobileCydia.mm

index 7f05319193ea06cb4d7c989b294fdd73d55807d4..e2a6db31ca7a87641e74b7321e5cc9e2eabd526d 100644 (file)
@@ -2448,7 +2448,7 @@ struct PackageNameOrdering :
             icon = [UIImage imageAtPath:[static_cast<id>(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]];