]> git.saurik.com Git - cydia.git/commitdiff
longSection shouldn't try localizing NULL section.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 26 Dec 2016 21:18:25 +0000 (13:18 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 26 Dec 2016 21:18:25 +0000 (13:18 -0800)
MobileCydia.mm

index eacb25d9bd88088d7bee5f753bd890940f9e6cc5..53df43e95b60081019658af30f74543fb0639a1c 100644 (file)
@@ -2769,7 +2769,10 @@ struct PackageNameOrdering :
 }
 
 - (NSString *) longSection {
-    return LocalizeSection([self section]);
+    if (NSString *section = [self section])
+        return LocalizeSection(section);
+    else
+        return nil;
 }
 
 - (NSString *) shortSection {