apprtc-go icon indicating copy to clipboard operation
apprtc-go copied to clipboard

invalid memory address or nil pointer dereference

Open jtorvald opened this issue 6 years ago • 0 comments

2018/05/15 13:17:19 roomPageHandler host: localhost:8080 url: /r/746761393? path: /r/746761393 raw query: 2018/05/15 13:17:19 room page room_id: 746761393 2018/05/15 13:17:19 http: panic serving [::1]:50901: runtime error: invalid memory address or nil pointer dereference goroutine 117 [running]: net/http.(*conn).serve.func1(0xc420079540) /usr/local/go/src/net/http/server.go:1697 +0xd0 panic(0x1352780, 0x15a1460) /usr/local/go/src/runtime/panic.go:491 +0x283 html/template.(*Template).escape(0x0, 0x0, 0x0) /usr/local/go/src/html/template/template.go:95 +0x38 html/template.(*Template).Execute(0x0, 0x1571980, 0xc4204748c0, 0x0, 0x0, 0xc4205197e0, 0xffffffffffffffff) /usr/local/go/src/html/template/template.go:119 +0x2f main.roomPageHandler(0x15760c0, 0xc4204748c0, 0xc420177000) /Users/jorgenteunis/go/src/github.com/daozhao/apprtc-go/apprtc.go:262 +0x5e7 net/http.HandlerFunc.ServeHTTP(0x13cfea8, 0x15760c0, 0xc4204748c0, 0xc420177000) /usr/local/go/src/net/http/server.go:1918 +0x44 net/http.(*ServeMux).ServeHTTP(0xc42007eff0, 0x15760c0, 0xc4204748c0, 0xc420177000) /usr/local/go/src/net/http/server.go:2254 +0x130 net/http.serverHandler.ServeHTTP(0xc420081380, 0x15760c0, 0xc4204748c0, 0xc420177000) /usr/local/go/src/net/http/server.go:2619 +0xb4 net/http.(*conn).serve(0xc420079540, 0x1576700, 0xc42012e180) /usr/local/go/src/net/http/server.go:1801 +0x71d created by net/http.(*Server).Serve /usr/local/go/src/net/http/server.go:2720 +0x288

jtorvald avatar May 15 '18 11:05 jtorvald