Skip to content

Commit c0878eb

Browse files
committed
Fix another NPE
1 parent cd9749e commit c0878eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ArtNetSharp/Communication/AbstractInstance.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ private async Task triggerSendArtPoll()
12781278

12791279
private async void TimerSendPoll_Elapsed(object sender, EventArgs e)
12801280
{
1281-
if (!ArtNetInstance.Instances.Contains(this))
1281+
if (!(ArtNetInstance?.Instances?.Contains(this) ?? false))
12821282
return;
12831283

12841284
await triggerSendArtPoll();

0 commit comments

Comments
 (0)