summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-10 17:55:30 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-10 17:55:30 -0800
commit5612913e2ab98258a86b2b0ff2454cc1aa04f7a8 (patch)
tree985878087d4390ae18757f488664faada96f7f2c /MobileCydia.mm
parent801326028ed54e43655e3812156cf7dac5842a3e (diff)
Do not crash on null package controllers.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 90ad65e..a1d96f0 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -5902,7 +5902,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
if ((self = [super init]) != nil) {
database_ = database;
buttons_ = [NSMutableArray arrayWithCapacity:4];
- name_ = [NSString stringWithString:name];
+ name_ = name == nil ? @"" : [NSString stringWithString:name];
[self setURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/#!/package/%@", UI_, (id) name_]]];
} return self;
}