Skip to content

Commit 4546500

Browse files
muhammad-othmanashovlin
authored andcommitted
Update DynamoDB TryToDynamoDBList converter to skip null values
1 parent 13331e3 commit 4546500

File tree

1 file changed

+1
-1
lines changed
  • sdk/src/Services/DynamoDBv2/Custom/DocumentModel

1 file changed

+1
-1
lines changed

sdk/src/Services/DynamoDBv2/Custom/DocumentModel/Document.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ private static bool TryToDynamoDBList(AttributeValue attributeValue, out DynamoD
675675
if (attributeValue.IsSetL())
676676
{
677677
var items = attributeValue.L;
678-
var entries = items.Select(AttributeValueToDynamoDBEntry);
678+
var entries = items.Select(AttributeValueToDynamoDBEntry).Where(item => item != null);
679679
list = new DynamoDBList(entries);
680680
}
681681

0 commit comments

Comments
 (0)