diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/Sharing/ListFoldersArgs.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/Sharing/ListFoldersArgs.cs index 086b75b1d1..032e450926 100644 --- a/dropbox-sdk-dotnet/Dropbox.Api/Generated/Sharing/ListFoldersArgs.cs +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/Sharing/ListFoldersArgs.cs @@ -94,7 +94,7 @@ private class ListFoldersArgsEncoder : enc.StructEncoder public override void EncodeFields(ListFoldersArgs value, enc.IJsonWriter writer) { WriteProperty("limit", value.Limit, writer, enc.UInt32Encoder.Instance); - if (value.Actions.Count > 0) + if (value != null && value.Actions != null && value.Actions.Count > 0) { WriteListProperty("actions", value.Actions, writer, global::Dropbox.Api.Sharing.FolderAction.Encoder); }