From 1abfcc00420aef6888c08c314486b3276b38843e Mon Sep 17 00:00:00 2001 From: Hubert Mattusch Date: Fri, 15 Sep 2023 16:53:41 +0200 Subject: [PATCH] null check --- NEG/UI/UiManager.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NEG/UI/UiManager.cs b/NEG/UI/UiManager.cs index c25e4b3..70b7478 100644 --- a/NEG/UI/UiManager.cs +++ b/NEG/UI/UiManager.cs @@ -183,6 +183,8 @@ namespace NEG.UI while (popupsToShow.TryDequeue(out var d, out int p)) { + if(d == null) + continue; if(!d.IsValid) continue; if(d == currentShownPopup.data)