Explorar el Código

Fixed unit tests failure caused by BackgroundWorkerCollection

Tig hace 1 año
padre
commit
8487e78cf3
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      UICatalog/Scenarios/BackgroundWorkerCollection.cs

+ 5 - 0
UICatalog/Scenarios/BackgroundWorkerCollection.cs

@@ -174,6 +174,11 @@ public class BackgroundWorkerCollection : Scenario
 
         private void OverlappedMain_Activate (object sender, ToplevelEventArgs top)
         {
+            if (top.Toplevel is null)
+            {
+                return;
+            }
+
             _workerApp?.WriteLog ($"{top.Toplevel.Data} activate.");
         }