Skip to content

Commit ef99d2a

Browse files
committed
added nil pointer check on command and server
1 parent 60a1f4a commit ef99d2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/config/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ func (c *Config) NewContextWithLabels(ctx context.Context) context.Context {
473473
}
474474

475475
func (c *Config) IsCommandServerProxyConfigured() bool {
476-
if c.Command.Server.Proxy == nil {
476+
if c.Command == nil || c.Command.Server == nil || c.Command.Server.Proxy == nil {
477477
return false
478478
}
479479

0 commit comments

Comments
 (0)