-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Hi!
I'm trying to filter the stats output by a list of tubes and am getting the following error. Initially I was listing several tubes separated by commas but I realised the same error occurs even with just a single tube.
`beanstool stats --host=xxx.xxx.xxx.xxx:11301 --tubes=dispatcher-fast
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x46664f]
goroutine 1 [running]:
github.com/src-d/beanstool/cli.(*StatsCommand).buildLineFromTubeStats(0xc8200126c0, 0x6316d8, 0x7, 0x0, 0x0, 0x0, 0x0)
/Users/mcuadros/workspace/go/src/github.com/src-d/beanstool/cli/stats.go:76 +0x8f
github.com/src-d/beanstool/cli.(*StatsCommand).PrintStats(0xc8200126c0, 0x0, 0x0)
/Users/mcuadros/workspace/go/src/github.com/src-d/beanstool/cli/stats.go:58 +0x1b5
github.com/src-d/beanstool/cli.(*StatsCommand).Execute(0xc8200126c0, 0xc820013170, 0x0, 0x3, 0x0, 0x0)
/Users/mcuadros/workspace/go/src/github.com/src-d/beanstool/cli/stats.go:36 +0x74
github.com/jessevdk/go-flags.(*Parser).ParseArgs(0xc820078190, 0xc82000a1d0, 0x3, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/mcuadros/workspace/go/src/github.com/jessevdk/go-flags/parser.go:301 +0xa16
github.com/jessevdk/go-flags.(*Parser).Parse(0xc820078190, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/mcuadros/workspace/go/src/github.com/jessevdk/go-flags/parser.go:175 +0x9b
main.main()
/Users/mcuadros/workspace/go/src/github.com/src-d/beanstool/beanstool.go:21 +0x6d4`