(fix) don't try to initialize location values when using single store mode
parent
32c6fa9757
commit
199a5f5215
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue