From 085156d8a5295c6d1219c74a4b388d19169c97f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Thu, 28 Sep 2023 18:39:02 +0200 Subject: [PATCH] Fixed Exceptions on cancelling file loading --- CHANGELOG.md | 1 + src/com/jpexs/decompiler/flash/gui/Main.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc8ccfec4..18590bd75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -55,6 +55,7 @@ All notable changes to this project will be documented in this file. - [#2009] Missing images in MacOs icon - AS3 Initialization of var in script initializer - AS3 Nullpointer on getting multiname which is out of bounds +- Exceptions on cancelling file loading ### Changed - [#2070] String values inside SWF to XML export are backslash escaped diff --git a/src/com/jpexs/decompiler/flash/gui/Main.java b/src/com/jpexs/decompiler/flash/gui/Main.java index ea736f25c..02028724a 100644 --- a/src/com/jpexs/decompiler/flash/gui/Main.java +++ b/src/com/jpexs/decompiler/flash/gui/Main.java @@ -1567,6 +1567,9 @@ public class Main { View.execInEventDispatch(() -> { Main.startWork(AppStrings.translate("work.creatingwindow") + "...", null); ensureMainFrame(); + if (openables1.isEmpty()) { + return; + } if (reloadIndices[findex] > -1) { mainFrame.getPanel().loadSwfAtPos(openables1, reloadIndices[findex]); } else {