2
0

Fixed a crash on enumerateCloudStores if iCloud is disabled.

This commit is contained in:
Maarten Billemont 2014-04-26 15:01:24 -04:00
parent b1daeaf8ed
commit 6345899783
2 changed files with 5 additions and 3 deletions

@ -1 +1 @@
Subproject commit c02affe877a6de49bbe4055b8dceed52613f4e12 Subproject commit 5e38f25f6e058cc52b8e41bcdc183b7966bb3ac7

View File

@ -107,8 +107,10 @@
- (void)switchCloudStore { - (void)switchCloudStore {
NSDictionary *cloudStores = [[MPiOSAppDelegate get].storeManager enumerateCloudStores]; NSDictionary *cloudStores = [[MPiOSAppDelegate get].storeManager enumerateCloudStores];
if (!cloudStores) if (!cloudStores) {
wrn( @"Failed enumerating cloud stores." ); wrn( @"Failed enumerating cloud stores." );
return;
}
NSString *currentStoreUUID = nil; NSString *currentStoreUUID = nil;
NSMutableDictionary *stores = [NSMutableDictionary dictionary]; NSMutableDictionary *stores = [NSMutableDictionary dictionary];