Skip to content

Commit

Permalink
ASC.Data.Storage: StorageHandler: added null check
Browse files Browse the repository at this point in the history
  • Loading branch information
andreysavihin committed Dec 17, 2024
1 parent 6c2e37c commit 2a2b0b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/ASC.Data.Storage/StorageHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public async Task InvokeAsync(HttpContext context, TenantManager tenantManager,
return;
}

var headers = header.Length > 0 ? header.Split('&').Select(HttpUtility.UrlDecode).ToList() : [];
var headers = header != null && header.Length > 0 ? header.Split('&').Select(HttpUtility.UrlDecode).ToList() : [];

if (storage.ContentAsAttachment)
{
Expand Down

0 comments on commit 2a2b0b2

Please sign in to comment.