Explorar o código

Fixed unit tests failure caused by BackgroundWorkerCollection

Tig hai 1 ano
pai
achega
8487e78cf3
Modificáronse 1 ficheiros con 5 adicións e 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.");
         }