Merge pull request #590 from hqhq/hq_fix_stacktrace_panic

Fix stacktrace panic
This commit is contained in:
Victor Marmol 2015-05-15 08:37:21 -07:00
commit 6dd5d073b3
1 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,9 @@ import (
// NewFrame returns a new stack frame for the provided information
func NewFrame(pc uintptr, file string, line int) Frame {
fn := runtime.FuncForPC(pc)
if fn == nil {
return Frame{}
}
pack, name := parseFunctionName(fn.Name())
return Frame{
Line: line,