diff --git a/CHANGELOG.md b/CHANGELOG.md index c1aeac571..9f203e52a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +### Fixed +- [#2570] Nullpointer on SVG export of DefineEditText ## [24.1.1] - 2025-11-17 ### Added @@ -4044,6 +4046,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 +[#2570]: https://www.free-decompiler.com/flash/issues/2570 [#2556]: https://www.free-decompiler.com/flash/issues/2556 [#2536]: https://www.free-decompiler.com/flash/issues/2536 [#2537]: https://www.free-decompiler.com/flash/issues/2537 diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java index 82cdc2a40..a1028751f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java @@ -1299,7 +1299,7 @@ public class DefineEditTextTag extends TextTag { } private void render(TextRenderMode renderMode, SerializableImage image, SVGExporter svgExporter, StringBuilder htmlCanvasBuilder, Matrix transformation, ColorTransform colorTransform, double zoom, int selectionStart, int selectionEnd) { - if (image.getGraphics() instanceof RequiresNormalizedFonts) { + if (image != null && image.getGraphics() instanceof RequiresNormalizedFonts) { RequiresNormalizedFonts g = (RequiresNormalizedFonts) image.getGraphics(); Map normalizedTexts = g.getNormalizedTexts(); int realTextId = getSwf().getCharacterId(this);