diff --git a/ArtNetSharp/Communication/AbstractInstance.cs b/ArtNetSharp/Communication/AbstractInstance.cs index bee36af..097bcaa 100644 --- a/ArtNetSharp/Communication/AbstractInstance.cs +++ b/ArtNetSharp/Communication/AbstractInstance.cs @@ -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();