From cc207d3d7c0cde25330007a5b286ae3ef9bcd17f Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 26 Feb 2023 15:36:28 -0500 Subject: [PATCH] a --- core/src/mindustry/core/UI.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/mindustry/core/UI.java b/core/src/mindustry/core/UI.java index da49916c59..c1c9c97b5f 100644 --- a/core/src/mindustry/core/UI.java +++ b/core/src/mindustry/core/UI.java @@ -419,6 +419,8 @@ public class UI implements ApplicationListener, Loadable{ } public void showException(String text, Throwable exc){ + if(loadfrag == null) return; + loadfrag.hide(); new Dialog(""){{ String message = Strings.getFinalMessage(exc);