Skip to content

Commit

Permalink
fix: add nil check when merging local evaluation config
Browse files Browse the repository at this point in the history
  • Loading branch information
bgiori committed Jan 9, 2024
1 parent a760fc5 commit eedf3e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/experiment/local/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func fillConfigDefaults(c *Config) *Config {
if c.FlagConfigPollerRequestTimeout == 0 {
c.FlagConfigPollerRequestTimeout = DefaultConfig.FlagConfigPollerRequestTimeout
}
if c.AssignmentConfig.CacheCapacity == 0 {
if c.AssignmentConfig != nil && c.AssignmentConfig.CacheCapacity == 0 {
c.AssignmentConfig.CacheCapacity = DefaultAssignmentConfig.CacheCapacity
}
return c
Expand Down

0 comments on commit eedf3e0

Please sign in to comment.