From 80585cc3765ac063223608449c16a74b7e20d143 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 21 Nov 2022 21:17:17 +0100 Subject: [PATCH] Fixed New file action --- CHANGELOG.md | 1 + .../src/com/jpexs/decompiler/flash/OpenableSourceInfo.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb8798592..e5ae76984 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file. - [#1880] JPEG Fixer - Close action from menu not available on bundles (zip, etc...) - [#1881] Wrong locale reference for invalid tag order +- New file action ## [17.0.0] - 2022-11-20 ### Added diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/OpenableSourceInfo.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/OpenableSourceInfo.java index f1c79f75c..25bab61ad 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/OpenableSourceInfo.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/OpenableSourceInfo.java @@ -105,8 +105,8 @@ public class OpenableSourceInfo { return file; } - public boolean isBundle() { - if (inputStream == null) { + public boolean isBundle() { + if (inputStream == null && file != null) { File fileObj = new File(file); String fileName = fileObj.getName(); if (fileName.startsWith("asdec_") && fileName.endsWith(".tmp")) {