From 96aa0dd929995f73a86f354e5e0ac0cd6e9eb56b Mon Sep 17 00:00:00 2001 From: Yoshi Askharoun Date: Tue, 23 May 2023 13:03:49 -0500 Subject: [PATCH] Prevent NRE in Dispatcher when debugger is not attached --- UIX/Microsoft/Iris/Queues/Dispatcher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UIX/Microsoft/Iris/Queues/Dispatcher.cs b/UIX/Microsoft/Iris/Queues/Dispatcher.cs index 0efc4a9..18c39ae 100644 --- a/UIX/Microsoft/Iris/Queues/Dispatcher.cs +++ b/UIX/Microsoft/Iris/Queues/Dispatcher.cs @@ -73,7 +73,7 @@ namespace Microsoft.Iris.Queues QueueItem nextItem = queue.GetNextItem(); if (nextItem != null) { - Application.Debugger.LogDispatcher(nextItem.ToDebugPacketString()); + Application.Debugger?.LogDispatcher(nextItem.ToDebugPacketString()); nextItem.Dispatch(); } else