Nil panic when working on a theme with pagination

I’m working on my own theme and for some reason whenever pagination is involved I get a runtime panic for a nil pointer reference:

Code/chasinglogic.io master Δ hugo server
Started building sites ...
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x101955]

goroutine 137 [running]:
panic(0x650a00, 0xc4200100d0)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/runtime/panic.go:500 +0x1a1
text/template.errRecover(0xc4203198f8)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/text/template/exec.go:140 +0x2ad
panic(0x650a00, 0xc4200100d0)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/runtime/panic.go:458 +0x243
github.com/spf13/hugo/hugolib.(*Pager).PageNumber(0x0, 0x0)
	/private/tmp/hugo-20161230-91494-1a4t983/hugo-0.18.1/src/github.com/spf13/hugo/hugolib/pagination.go:79 +0x5
reflect.Value.call(0x6c5e40, 0xc42020a678, 0x1e93, 0x6ea66d, 0x4, 0xa62eb8, 0x0, 0x0, 0x2438d3, 0xa445a0, ...)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/reflect/value.go:434 +0x5c8
reflect.Value.Call(0x6c5e40, 0xc42020a678, 0x1e93, 0xa62eb8, 0x0, 0x0, 0xc42054a080, 0x10, 0x10)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/reflect/value.go:302 +0xa4
text/template.(*state).evalCall(0xc420319878, 0x6e8120, 0xc4203f6000, 0x16, 0x6c5e40, 0xc42020a678, 0x1e93, 0xa08ae0, 0xc4203ec180, 0xc420391d10, ...)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/text/template/exec.go:658 +0x530
text/template.(*state).evalField(0xc420319878, 0x6e8120, 0xc4203f6000, 0x16, 0xc420391d10, 0xa, 0xa08ae0, 0xc4203ec180, 0xc4203c51c0, 0x1, ...)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/text/template/exec.go:549 +0xdb6
text/template.(*state).evalFieldChain(0xc420319878, 0x6e8120, 0xc4203f6000, 0x16, 0x6e8120, 0xc4203f6000, 0x16, 0xa08ae0, 0xc4203ec180, 0xc4203ec150, ...)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/text/template/exec.go:520 +0x22f
text/template.(*state).evalFieldNode(0xc420319878, 0x6e8120, 0xc4203f6000, 0x16, 0xc4203ec180, 0xc4203c51c0, 0x1, 0x1, 0x0, 0x0, ...)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/text/template/exec.go:484 +0x114
text/template.(*state).evalCommand(0xc420319878, 0x6e8120, 0xc4203f6000, 0x16, 0xc4203ec0f0, 0x0, 0x0, 0x0, 0xc420319378, 0x2c43ef, ...)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/text/template/exec.go:422 +0x866
text/template.(*state).evalPipeline(0xc420319878, 0x6e8120, 0xc4203f6000, 0x16, 0xc4203bbb30, 0x0, 0x0, 0x98)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/text/template/exec.go:400 +0xee
text/template.(*state).walk(0xc420319878, 0x6e8120, 0xc4203f6000, 0x16, 0xa088a0, 0xc4203ec1b0)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/text/template/exec.go:226 +0x423
text/template.(*state).walk(0xc420319878, 0x6e8120, 0xc4203f6000, 0x16, 0xa08c00, 0xc4203d1b30)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/text/template/exec.go:234 +0x13d
text/template.(*state).walkIfOrWith(0xc420319878, 0xa, 0x6e8120, 0xc4203f6000, 0x16, 0xc4203d2640, 0xc4203d1b30, 0x0)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/text/template/exec.go:264 +0x1d0
text/template.(*state).walk(0xc420319878, 0x6e8120, 0xc4203f6000, 0x16, 0xa08ba0, 0xc4203de640)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/text/template/exec.go:231 +0x2e8
text/template.(*state).walk(0xc420319878, 0x6e8120, 0xc4203f6000, 0x16, 0xa08c00, 0xc4203d1a40)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/text/template/exec.go:234 +0x13d
text/template.(*state).walkIfOrWith(0xc420319878, 0xa, 0x6e8120, 0xc4203f6000, 0x16, 0xc420201a90, 0xc4203d1a40, 0x0)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/text/template/exec.go:264 +0x1d0
text/template.(*state).walk(0xc420319878, 0x6e8120, 0xc4203f6000, 0x16, 0xa08ba0, 0xc420399d40)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/text/template/exec.go:231 +0x2e8
text/template.(*state).walk(0xc420319878, 0x6e8120, 0xc4203f6000, 0x16, 0xa08c00, 0xc4203d79b0)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/text/template/exec.go:234 +0x13d
text/template.(*Template).execute(0xc4203de1c0, 0x9fed80, 0xc420227420, 0x6e8120, 0xc4203f6000, 0x0, 0x0)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/text/template/exec.go:189 +0x204
text/template.(*Template).Execute(0xc4203de1c0, 0x9fed80, 0xc420227420, 0x6e8120, 0xc4203f6000, 0xc420347c00, 0x10)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/text/template/exec.go:175 +0x53
html/template.(*Template).Execute(0xc4203d7950, 0x9fed80, 0xc420227420, 0x6e8120, 0xc4203f6000, 0x10, 0xc4203d7950)
	/usr/local/Cellar/go/1.7.4_1/libexec/src/html/template/template.go:104 +0x78
github.com/spf13/hugo/hugolib.(*Site).renderThing(0xc4201caa00, 0x6e8120, 0xc4203f6000, 0xc420347c00, 0x10, 0x9fed80, 0xc420227420, 0x45025, 0x1c6cc3)
	/private/tmp/hugo-20161230-91494-1a4t983/hugo-0.18.1/src/github.com/spf13/hugo/hugolib/site.go:1851 +0x96
github.com/spf13/hugo/hugolib.(*Site).renderForLayouts(0xc4201caa00, 0xc4202718c0, 0x13, 0x6e8120, 0xc4203f6000, 0x9fed80, 0xc420227420, 0xc420399740, 0x4, 0x4, ...)
	/private/tmp/hugo-20161230-91494-1a4t983/hugo-0.18.1/src/github.com/spf13/hugo/hugolib/site.go:1823 +0xcd
github.com/spf13/hugo/hugolib.(*Site).renderAndWritePage(0xc4201caa00, 0xc4202718c0, 0x13, 0xc420347b68, 0x7, 0x6e8120, 0xc4203f6000, 0xc420399740, 0x4, 0x4, ...)
	/private/tmp/hugo-20161230-91494-1a4t983/hugo-0.18.1/src/github.com/spf13/hugo/hugolib/site.go:1730 +0x120
github.com/spf13/hugo/hugolib.(*Site).renderPaginator(0xc4201caa00, 0xc42013a000, 0x6ead9d, 0x4)
	/private/tmp/hugo-20161230-91494-1a4t983/hugo-0.18.1/src/github.com/spf13/hugo/hugolib/site_render.go:125 +0x645
github.com/spf13/hugo/hugolib.pageRenderer(0xc4201caa00, 0xc4204f6480, 0xc4204f6420, 0xc420439450)
	/private/tmp/hugo-20161230-91494-1a4t983/hugo-0.18.1/src/github.com/spf13/hugo/hugolib/site_render.go:79 +0x43c
created by github.com/spf13/hugo/hugolib.(*Site).renderPages
	/private/tmp/hugo-20161230-91494-1a4t983/hugo-0.18.1/src/github.com/spf13/hugo/hugolib/site_render.go:46 +0x163
0!! Code/chasinglogic.io master Δ hugo version
Hugo Static Site Generator v0.18.1 BuildDate: 2016-12-29T12:12:41-05:00
Code/chasinglogic.io master Δ

There is a _partials/list.html

Don’t have a problem rendering another site with a theme I made same version of hugo, must be something weird in the theme but I’m not sure what

Found it, I was calling .Paginator.Next.PageNumber twice