aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/hugo_sites_build.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2020-06-16 10:42:41 +0200
committerBjørn Erik Pedersen <[email protected]>2020-06-16 11:48:10 +0200
commit6408c1cbc87f03fc9e92471165886ddbe7cdbeae (patch)
treeabec79e04cb66f376d83d122a795ad1923b9bc54 /hugolib/hugo_sites_build.go
parent522ba1cd98ac67482061448c3a7528e68a720f0d (diff)
downloadhugo-6408c1cbc87f03fc9e92471165886ddbe7cdbeae.tar.gz
hugo-6408c1cbc87f03fc9e92471165886ddbe7cdbeae.zip
Fix server data race/nil pointer in withMaps
Fixes #7392
Diffstat (limited to 'hugolib/hugo_sites_build.go')
-rw-r--r--hugolib/hugo_sites_build.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/hugo_sites_build.go b/hugolib/hugo_sites_build.go
index fac20e883..f39e7a7e5 100644
--- a/hugolib/hugo_sites_build.go
+++ b/hugolib/hugo_sites_build.go
@@ -263,7 +263,7 @@ func (h *HugoSites) assemble(bcfg *BuildCfg) error {
return nil
}
- if err := h.content.AssemblePages(); err != nil {
+ if err := h.getContentMaps().AssemblePages(); err != nil {
return err
}