handle null value (#1790)

This commit is contained in:
Alan Ren
2022-12-16 08:08:00 -08:00
committed by GitHub
parent ec071c8819
commit e20f64fa9a

View File

@@ -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))