(fix) don't try to initialize location values when using single store mode

pull/208/head
Ludovic Marcotte 2016-05-13 11:14:28 -04:00
parent 32c6fa9757
commit 199a5f5215
1 changed files with 29 additions and 23 deletions

View File

@ -437,6 +437,7 @@ static BOOL _singleStoreMode = NO;
folderName = [_record objectForKey:@"c_path"];
path = [self pathFromInternalName:folderName];
if (!_singleStoreMode) {
locationString = [_record objectForKey:@"c_location"];
location = [locationString isNotNull]
? [NSURL URLWithString:locationString]
@ -461,6 +462,11 @@ static BOOL _singleStoreMode = NO;
acl_location = [locationString isNotNull]
? [NSURL URLWithString:locationString]
: nil;
} else {
location = nil;
quickLocation = nil;
acl_location = nil;
}
folder = [[GCSFolder alloc] initWithPath:path primaryKey:folderId
folderTypeName:folderTypeName