Skip to content

Commit f8aabf8

Browse files
committed
fix: null pointer access
1 parent 0a1be67 commit f8aabf8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

git/git.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ func createNewTree(ctx context.Context, client *github.Client, repo repository.R
6060
Mode: github.String("100644"),
6161
Type: github.String("blob"),
6262
}
63+
64+
if blob == nil {
65+
66+
continue
67+
68+
}
69+
6370
if blob.SHA != nil {
6471
treeEntry.SHA = blob.SHA
6572
}

0 commit comments

Comments
 (0)