From a3400bcd4704db42e508e3df616cac327c60c8e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 17 May 2025 18:25:54 +0200 Subject: [PATCH] Fixed: #2456 FLA export - NullPointer exception while exporting to CS4 or lower via commandline --- CHANGELOG.md | 4 ++++ .../src/com/jpexs/decompiler/flash/xfl/XFLConverter.java | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e9708740..68f597009 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ All notable changes to this project will be documented in this file. - Simple editor - edit parameters of items inside buttons - Simple editor - add/remove frames in buttons, button timeline header +### Fixed +- [#2456] FLA export - NullPointer exception while exporting to CS4 or lower via commandline + ### Fixed - Resize export dialogs labels to match localized strings - AS1/2 debugger - deletion of SWD file after debugging @@ -3792,6 +3795,7 @@ Major version of SWF to XML export changed to 2. [alpha 9]: https://github.com/jindrapetrik/jpexs-decompiler/compare/alpha8...alpha9 [alpha 8]: https://github.com/jindrapetrik/jpexs-decompiler/compare/alpha7...alpha8 [alpha 7]: https://github.com/jindrapetrik/jpexs-decompiler/releases/tag/alpha7 +[#2456]: https://www.free-decompiler.com/flash/issues/2456 [#2427]: https://www.free-decompiler.com/flash/issues/2427 [#1826]: https://www.free-decompiler.com/flash/issues/1826 [#2448]: https://www.free-decompiler.com/flash/issues/2448 diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java index 113b5ac64..b31dbd991 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java @@ -6020,7 +6020,9 @@ public class XFLConverter { } if (cbfFlaVersion != null) { - progressListener.status("Converting to " + cbfFlaVersion + " ..."); + if (progressListener != null) { + progressListener.status("Converting to " + cbfFlaVersion + " ..."); + } try { InputStorageInterface inputStorage = new ZippedInputStorage(new File(zipfile)); OutputStorageInterface outputStorage = new CfbOutputStorage(new File(outfile));