File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ - (void)loadRevisionsWithCompletionBlock:(void (^)(void))completionBlock
75
75
GTEnumerator *enu = [[GTEnumerator alloc ] initWithRepository: repo error: &error];
76
76
77
77
[weakSelf setupEnumerator: enu forRevspec: weakSelf.currentRev];
78
- [weakSelf addCommitsFromEnumerator: enu inPBRepo: pbRepo operation: weakParseOperation];
78
+ [weakSelf addCommitsFromEnumerator: enu operation: weakParseOperation];
79
79
}];
80
80
[parseOperation setCompletionBlock: completionBlock];
81
81
@@ -193,7 +193,7 @@ - (void)setupEnumerator:(GTEnumerator *)enumerator
193
193
}
194
194
}
195
195
196
- - (void )addCommitsFromEnumerator : (GTEnumerator *)enumerator inPBRepo : (PBGitRepository *) pbRepo operation : (NSOperation *)operation
196
+ - (void )addCommitsFromEnumerator : (GTEnumerator *)enumerator operation : (NSOperation *)operation
197
197
{
198
198
PBGitGrapher *g = [[PBGitGrapher alloc ] init ];
199
199
__block NSDate *lastUpdate = [NSDate date ];
@@ -214,6 +214,12 @@ - (void)addCommitsFromEnumerator:(GTEnumerator *)enumerator inPBRepo:(PBGitRepos
214
214
return ;
215
215
}
216
216
217
+ PBGitRepository *pbRepo = self.repository ;
218
+
219
+ if (pbRepo == nil ) {
220
+ return ;
221
+ }
222
+
217
223
PBGitCommit *newCommit = nil ;
218
224
PBGitCommit *cachedCommit = [self .commitCache objectForKey: oid];
219
225
if (cachedCommit) {
You can’t perform that action at this time.
0 commit comments