diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2016-12-26 13:18:25 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2016-12-26 13:18:25 -0800 |
commit | b23b24db6ecef37ed83ad7167a30a0534cd3fbbf (patch) | |
tree | 0e023ca89dc418854b6cbc2af65f56b10ec75e15 | |
parent | c66799b9a7cc38772cdda9873bee8ca850173e88 (diff) |
longSection shouldn't try localizing NULL section.
-rw-r--r-- | MobileCydia.mm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index eacb25d..53df43e 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -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 { |