Added assert to make sure bundle isn't nil

This commit is contained in:
Zorg committed 2015-07-01 22:00:29 -04:00
1 parent 0b7e343a56
commit ddb67d1c84
1 file changed
+1
+1
View File
@@ -41,6 +41,7 @@ typedef struct {
{
if ((self = [super init]))
{
NSParameterAssert(aBundle);
self.bundle = aBundle;
if (![self.bundle bundleIdentifier]) {
SULog(@"Error: the bundle being updated at %@ has no %@! This will cause preference read/write to not work properly.", self.bundle, kCFBundleIdentifierKey);