Make sure InputSizeTracker doesn't throw NullRef when projecting properties (#126)
add a field null check
This commit is contained in:
Родитель
cbb2d3f880
Коммит
5ad4a070b4
|
@ -63,6 +63,13 @@ namespace Microsoft.DataTransfer.TableAPI.Sink.Bulk
|
|||
|
||||
foreach (var field in entity.Properties)
|
||||
{
|
||||
// unfortunately it is not possible to access IsNull
|
||||
if (field.Value.PropertyAsObject == null)
|
||||
{
|
||||
// projections can lead null fields being returned
|
||||
continue;
|
||||
}
|
||||
|
||||
length += field.Key.Length;
|
||||
|
||||
switch (field.Value.PropertyType)
|
||||
|
|
Загрузка…
Ссылка в новой задаче