-
Notifications
You must be signed in to change notification settings - Fork 30
Description
SIGSEGV: segmentation violation code
$ ./nr backup alertsconditions -d /Users/rmalhotra
Start to backup all alertsconditions to '/Users/rmalhotra' folder
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x1378246]
goroutine 1 [running]:
github.com/IBM/newrelic-cli/cmd/get.GetMonitorByID(0xc00018d140, 0x24, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/rmalhotra/go/src/github.com/IBM/newrelic-cli/cmd/get/get_monitor.go:89 +0x3c6
github.com/IBM/newrelic-cli/cmd/backup.glob..func1(0x18b2c60, 0xc00007a8c0, 0x0, 0x2)
/Users/rmalhotra/go/src/github.com/IBM/newrelic-cli/cmd/backup/backup_alertsconditions.go:145 +0x526
github.com/spf13/cobra.(*Command).execute(0x18b2c60, 0xc00007a880, 0x2, 0x2, 0x18b2c60, 0xc00007a880)
/Users/rmalhotra/go/src/github.com/spf13/cobra/command.go:766 +0x2cc
github.com/spf13/cobra.(*Command).ExecuteC(0x18b2080, 0x18b2540, 0x18b7ac0, 0x0)
/Users/rmalhotra/go/src/github.com/spf13/cobra/command.go:852 +0x2fd
github.com/spf13/cobra.(*Command).Execute(0x18b2080, 0x1005390, 0xc00007e058)
/Users/rmalhotra/go/src/github.com/spf13/cobra/command.go:800 +0x2b
github.com/IBM/newrelic-cli/cmd.Execute()
/Users/rmalhotra/go/src/github.com/IBM/newrelic-cli/cmd/root.go:56 +0x2d
main.main()
/Users/rmalhotra/IBM/newrelic-cli/nr.go:20 +0x20