Skip to content

Commit

Permalink
bug: another nil pointer (#386)
Browse files Browse the repository at this point in the history
* fix(issue_match): removed severity resolver

* bug: fixed nilpointer exception
  • Loading branch information
drochow authored Nov 18, 2024
1 parent bffba75 commit 1dcbcf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scanner/k8s-assets/processor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (p *Processor) ProcessService(ctx context.Context, serviceInfo scanner.Serv
createServiceResp, err := client.CreateService(ctx, *p.Client, createServiceInput)
if err != nil {
return "", fmt.Errorf("failed to create Service %s: %w", serviceInfo.CCRN, err)
} else {
} else if createServiceResp.CreateService != nil && createServiceResp.CreateService.Id != "" {
serviceId = createServiceResp.CreateService.Id
}
} else {
Expand Down

0 comments on commit 1dcbcf7

Please sign in to comment.