Fix assignment to entry in nil map

Fixes #13853
This commit is contained in:
Bjørn Erik Pedersen
2025-07-10 16:28:36 +02:00
parent a84beee429
commit 6f42cfbc9b
3 changed files with 28 additions and 4 deletions

View File

@@ -89,6 +89,7 @@ func TestPageMatcher(t *testing.T) {
return v
}
c.Assert(fn(map[string]any{"_target": map[string]any{"kind": "page"}, "foo": "bar"}), qt.DeepEquals, PageMatcherParamsConfig{
Params: maps.Params{},
Fields: maps.Params{
"foo": "bar",
},