Skip to content

Commit

Permalink
Checks if facts from cdx component is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaize Kaye committed Aug 13, 2024
1 parent 7030265 commit efd88c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/handler/insightsParserFilter.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func processSbomInsightsData(h *Messaging, insights InsightsData, v string, apiC

func processFactsFromSBOM(logger *slog.Logger, facts *[]cdx.Component, environmentId int, source string) []LagoonFact {
var factsInput []LagoonFact
if len(*facts) == 0 {
if facts == nil || len(*facts) == 0 {
return factsInput
}

Expand Down

0 comments on commit efd88c0

Please sign in to comment.