Fixed Exceptions on cancelling file loading

This commit is contained in:
Jindra Petřík
2023-10-01 18:21:38 +02:00
parent a20da0839c
commit 085156d8a5
2 changed files with 4 additions and 0 deletions
@@ -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 {