johnnadratowski / golang-neo4j-bolt-driver

Golang Bolt driver for Neo4j
MIT License
213 stars 72 forks source link

Use of nil reference when connection cannot be opened #63

Open moutoum opened 5 years ago

moutoum commented 5 years ago

I had this error when the Dial connection was not able to connect to the DB. After investigations, you used the nil c.conn object is the Close method.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x612a5b]