We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dca548e commit c897111Copy full SHA for c897111
ObjectiveGit/GTTree.m
@@ -72,7 +72,7 @@ - (GTTreeEntry *)entryWithPath:(NSString *)path error:(NSError **)error {
72
git_tree_entry *entry = NULL;
73
int gitError = git_tree_entry_bypath(&entry, self.git_tree, path.UTF8String);
74
if (error != GIT_OK) {
75
- *error = [NSError git_errorFor:gitError description:@"Failed to get tree ntry %@", path];
+ if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to get tree ntry %@", path];
76
return nil;
77
}
78
0 commit comments