WSSSQL-30 check for NULL pointer

Signed-off-by: rpastrana <rodrigo.pastrana@lexisnexis.com>