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 {