go-sqlmock icon indicating copy to clipboard operation
go-sqlmock copied to clipboard

SAST-Check- Dereference after null check sqlmock_go18.go file

Open raghvendra-dixit opened this issue 3 years ago • 0 comments
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. sqlmock_go18

image

Reproduction steps

Expected Result

we should be handling the error properly here.

Actual Result

raghvendra-dixit avatar Aug 02 '22 17:08 raghvendra-dixit