Skip to content

Commit

Permalink
fix: Avoid crash in network config migration
Browse files Browse the repository at this point in the history
  • Loading branch information
kostko committed Mar 14, 2024
1 parent c2cd406 commit 940ac2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ func (cfg *Config) migrateNetworks() bool {
continue
}

if net.ParaTimes.All == nil {
net.ParaTimes.All = make(map[string]*config.ParaTime)
}
net.ParaTimes.All[ptName] = pt
changes = true
}
Expand Down

0 comments on commit 940ac2f

Please sign in to comment.