mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-18 01:25:41 -05:00
handle null value (#1790)
This commit is contained in:
@@ -174,7 +174,7 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
|
||||
}
|
||||
|
||||
// Get true type of the object
|
||||
Type tVal = values[i].GetType();
|
||||
Type tVal = values[i] == null ? typeof(DBNull) : values[i].GetType();
|
||||
|
||||
// Write the object to a file
|
||||
if (tVal == typeof(DBNull))
|
||||
|
||||
Reference in New Issue
Block a user