We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11a6635 commit 20611f8Copy full SHA for 20611f8
examples/net8.0/aspnetcore/Controllers/AwsController.cs
@@ -17,7 +17,7 @@ public async Task<ActionResult<string[]>> ListBuckets()
17
{
18
var response = await client.ListBucketsAsync();
19
20
- var buckets = response.Buckets.Select(o => o.BucketName).ToArray();
+ var buckets = response.Buckets?.Select(o => o.BucketName).ToArray() ?? [];
21
22
logger.LogInformation("Found {Count} buckets.", buckets.Length);
23
0 commit comments