Skip to content

Commit

Permalink
fix: waitfor can be mising WriteTo section
Browse files Browse the repository at this point in the history
  • Loading branch information
CumpsD authored Jul 5, 2020
1 parent 43d460b commit 9af3981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FunctionalLiving.Api/Infrastructure/WaitFor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static async Task SeqToBecomeAvailable(
.GetSection("Serilog:WriteTo")
.Get<WriteTo[]>();

var seq = writeTos.SingleOrDefault(to => "Seq".Equals(to.Name, StringComparison.InvariantCultureIgnoreCase));
var seq = writeTos?.SingleOrDefault(to => "Seq".Equals(to.Name, StringComparison.InvariantCultureIgnoreCase));
if (seq == null)
return;

Expand Down

0 comments on commit 9af3981

Please sign in to comment.