Skip to content

Commit 4bf2f6a

Browse files
committed
Fix nil pointer dereference
1 parent 6b85630 commit 4bf2f6a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

eliona/assets.go

+3
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ func fetchRootsFromEliona(assets []Asset, projectId string) ([]*api.Asset, error
8383
if err != nil {
8484
return nil, fmt.Errorf("getting root asset from API: %v", err)
8585
}
86+
if root == nil {
87+
continue
88+
}
8689

8790
apiRoots = append(apiRoots, root)
8891
}

0 commit comments

Comments
 (0)