From 4bb157ed755d761cf829d96b4bb73855baf3951e Mon Sep 17 00:00:00 2001 From: Ashley Brazier Date: Thu, 22 Aug 2019 16:31:33 +0100 Subject: [PATCH] Fix NPE : Object reference not set to an instance of an object --- .../Dropbox.Api/Generated/Sharing/ListFoldersArgs.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }