Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 21a4231

Browse files
authored
Fix NullReferenceException in CreateQueue (#2283)
1 parent cddaed1 commit 21a4231

File tree

1 file changed

+1
-1
lines changed
  • src/ApiService/ApiService/onefuzzlib

1 file changed

+1
-1
lines changed

src/ApiService/ApiService/onefuzzlib/Queue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public async Async.Task CreateQueue(string name, StorageType storageType) {
8484
var client = await GetQueueClient(name, storageType);
8585
var resp = await client.CreateIfNotExistsAsync();
8686

87-
if (resp.IsError) {
87+
if (resp is not null && resp.IsError) {
8888
_log.Error($"failed to create queue {name} due to {resp.ReasonPhrase}");
8989
}
9090
}

0 commit comments

Comments
 (0)