summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MobileCydia.mm8
1 files changed, 6 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 0d22a11..11127ac 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -5092,15 +5092,19 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
Source *source = [package source];
icon_ = [package icon];
- name_ = [NSString stringWithString:[package name]];
+
+ if (NSString *name = [package name])
+ name_ = [NSString stringWithString:name];
NSString *description(nil);
+
if (description == nil && IsWildcat_)
description = [package longDescription];
if (description == nil)
description = [package shortDescription];
- description_ = [NSString stringWithString:description];
+ if (description != nil)
+ description_ = [NSString stringWithString:description];
commercial_ = [package isCommercial];