Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: runtime error: invalid memory address or nil pointer dereference #2

Open
braydonf opened this issue Nov 17, 2015 · 2 comments
Open

Comments

@braydonf
Copy link

An runtime error will happen with untrusted X.509 certificates:

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x458589]

goroutine 1 [running]:
github.com/bitpay/bitpay-go/client.(*Client).PairClient(0xc208078120, 0xc20803bb90, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
    /home/testuser/go/src/github.com/bitpay/bitpay-go/client/client.go:114 +0x5e9
github.com/bitpay/bitpay-go/client.(*Client).PairWithCode(0xc208078120, 0x719690, 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
    /home/testuser/go/src/github.com/bitpay/bitpay-go/client/client.go:98 +0x233
main.main()
    /home/testuser/testing/go-client/test.go:17 +0x26c

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
    /usr/local/go/src/runtime/asm_amd64.s:2232 +0x1
exit status 2
@Athitaya253
Copy link

เช็ค

@themihai
Copy link

the library is not handling the errors ...so it's expected to panic...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants