Skip to content

Commit

Permalink
Fix another NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-dmxc committed Jun 4, 2024
1 parent cd9749e commit c0878eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArtNetSharp/Communication/AbstractInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1278,7 +1278,7 @@ private async Task triggerSendArtPoll()

private async void TimerSendPoll_Elapsed(object sender, EventArgs e)
{
if (!ArtNetInstance.Instances.Contains(this))
if (!(ArtNetInstance?.Instances?.Contains(this) ?? false))
return;

await triggerSendArtPoll();
Expand Down

0 comments on commit c0878eb

Please # to comment.