New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nilpointer in server mode, regression in 0.42 #4845

Closed
bep opened this Issue Jun 12, 2018 · 0 comments

Comments

Projects
None yet
1 participant

@bep bep added this to the 0.42.1 milestone Jun 12, 2018

@bep bep changed the title from Nilpointer regression in 0.42 to Nilpointer in server mode, regression in 0.42 Jun 12, 2018

bep added a commit to bep/hugo that referenced this issue Jun 13, 2018

hugolib: Reset the global pages cache on server rebuilds
In Hugo 0.42, this could lead to errors of type `runtime error: invalid memory address or nil pointer dereference` in some rare situations.

Note that this was also an issue before 0.42, but the symptom was then potentially stale list content on rebuilds on content changes.

This commit also improves the above error message.

Fixes gohugoio#4845

@bep bep closed this in #4848 Jun 13, 2018

bep added a commit that referenced this issue Jun 13, 2018

hugolib: Reset the global pages cache on server rebuilds
In Hugo 0.42, this could lead to errors of type `runtime error: invalid memory address or nil pointer dereference` in some rare situations.

Note that this was also an issue before 0.42, but the symptom was then potentially stale list content on rebuilds on content changes.

This commit also improves the above error message.

Fixes #4845
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment