From 84e1e898f408f77e4dc8258c2515ed1d7e9042c1 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Fri, 8 Nov 2024 16:21:17 +0100 Subject: [PATCH] fix(migrate): create properties when nil --- src/config/migrate.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/config/migrate.go b/src/config/migrate.go index 33709841..6d4b4a02 100644 --- a/src/config/migrate.go +++ b/src/config/migrate.go @@ -28,6 +28,10 @@ func (segment *Segment) migrate(version int) { return } + if segment.Properties == nil { + segment.Properties = properties.Map{} + } + // Cache settings, the default is now 24h so we have to respect this being disabled previously if !segment.Properties.GetBool("cache_version", false) { segment.Properties[properties.CacheDuration] = cache.NONE