Skip to content

Commit

Permalink
fix: segmentation violation during serve (k8sgpt-ai#1215)
Browse files Browse the repository at this point in the history
Signed-off-by: Kay Yan <[email protected]>
Signed-off-by: Ronald Petty <[email protected]>
  • Loading branch information
yankay authored and ronaldpetty committed Aug 17, 2024
1 parent da1cb19 commit 412340e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/serve/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ var ServeCmd = &cobra.Command{
}
}

if aiProvider.Name == "" {
if aiProvider == nil || aiProvider.Name == "" {
color.Red("Error: AI provider %s not specified in configuration. Please run k8sgpt auth", backend)
os.Exit(1)
}
Expand Down

0 comments on commit 412340e

Please sign in to comment.