hub icon indicating copy to clipboard operation
hub copied to clipboard

runtime error: invalid memory address or nil pointer dereference

Open bradleycamacho opened this issue 2 years ago • 0 comments

Command attempted: hub pr list -s all -f "%U,%S,%cD,%uD,%au,%L,%n" > ~/prs-Oct-3-2022.csv

What happened: Received the following error w/ no output:

goroutine 1 [running]:
panic(0x137da20, 0x1642d40)
	/usr/local/Cellar/go/1.15.5/libexec/src/runtime/panic.go:969 +0x1b9
github.com/github/hub/github.(*PullRequest).IsSameRepo(...)
	github/client.go:646
github.com/github/hub/commands.formatPullRequestPlaceholders(0x24af, 0xc00026fa74, 0x6, 0xc0002f14c0, 0x16, 0xc0000a8dc0, 0x2bb, 0xc00005d540, 0x0, 0xc000877f00, ...)
	commands/issue.go:456 +0x135
github.com/github/hub/commands.formatPullRequest(0x24af, 0xc00026fa74, 0x6, 0xc0002f14c0, 0x16, 0xc0000a8dc0, 0x2bb, 0xc00005d540, 0x0, 0xc000877f00, ...)
	commands/pr.go:421 +0x109
github.com/github/hub/commands.listPulls(0x16492e0, 0xc000172240)
	commands/pr.go:249 +0x7ff
github.com/github/hub/commands.(*Command).Call(0x1649220, 0xc000172240, 0xc00010f440, 0x4)
	commands/commands.go:45 +0x7f
github.com/github/hub/commands.callRunnableCommand(0x1649220, 0xc000172240, 0x7ff7bfeffa84, 0x2)
	commands/runner.go:87 +0x39
github.com/github/hub/commands.(*Runner).Execute(0xc000010060, 0xc000012070, 0x7, 0x7, 0x0, 0x0)
	commands/runner.go:70 +0x413
main.main()
	main.go:17 +0x77

bradleycamacho avatar Oct 03 '22 23:10 bradleycamacho