]> git.saurik.com Git - cydia.git/commitdiff
Do not crash on null package controllers.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 11 Mar 2011 01:55:30 +0000 (17:55 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 11 Mar 2011 01:55:30 +0000 (17:55 -0800)
MobileCydia.mm

index 90ad65e339ad57d79f9de8ffad1a35367fc1b7b7..a1d96f001910824e9fc9e6b84a55db63668a8927 100644 (file)
@@ -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;
 }