Prevent NRE in Dispatcher when debugger is not attached

This commit is contained in:
Yoshi Askharoun
2023-05-23 13:03:49 -05:00
parent 49d8ae6323
commit 96aa0dd929
+1 -1
View File
@@ -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