go-sqlmock
go-sqlmock copied to clipboard
SAST-Check- Dereference after null check sqlmock_go18.go file
trafficstars
Operating system and Go Version
Linux
Issue
As part of SAST tool run Coverity scam, we could see the code in the mentioned file could land up in null check exception error. Attached screenshot for reference.

Reproduction steps
Expected Result
we should be handling the error properly here.