Skip to content

Commit

Permalink
Merge pull request #61 from achunBOX/Strong
Browse files Browse the repository at this point in the history
Hotfix for weakSelf being nil in BOXFolderPaginatedItemsRequest in Br…
  • Loading branch information
achunBOX committed Aug 10, 2015
2 parents 68a1dfd + 458bff9 commit 088f1d0
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ - (BOXAPIOperation *)createOperation

- (void)performRequestWithCompletion:(BOXItemArrayCompletionBlock)completionBlock
{
__weak BOXFolderPaginatedItemsRequest *weakSelf = self;
BOOL isMainThread = [NSThread isMainThread];
BOXAPIJSONOperation *folderOperation = (BOXAPIJSONOperation *)self.operation;

Expand All @@ -74,7 +73,7 @@ - (void)performRequestWithCompletion:(BOXItemArrayCompletionBlock)completionBloc
NSMutableArray *items = [NSMutableArray arrayWithCapacity:capacity];

for (NSDictionary *itemDictionary in itemDictionaries) {
BOXItem *item = [weakSelf itemWithJSON:itemDictionary];
BOXItem *item = [self itemWithJSON:itemDictionary];
[items addObject:item];

NSArray *pathFolders = nil;
Expand All @@ -86,7 +85,7 @@ - (void)performRequestWithCompletion:(BOXItemArrayCompletionBlock)completionBloc
} else if ([item isKindOfClass:[BOXBookmark class]]) {
pathFolders = [((BOXBookmark *) item) pathFolders];
}
[weakSelf.sharedLinkHeadersHelper storeHeadersFromAncestorsIfNecessaryForItemWithID:item.modelID
[self.sharedLinkHeadersHelper storeHeadersFromAncestorsIfNecessaryForItemWithID:item.modelID
itemType:item.type
ancestors:pathFolders];
}
Expand Down

0 comments on commit 088f1d0

Please sign in to comment.