Fixed: #2570 Nullpointer on SVG export of DefineEditText

This commit is contained in:
Jindra Petřík
2025-11-24 21:09:27 +01:00
parent 983e0b0a40
commit 83aa1327aa
2 changed files with 4 additions and 1 deletions

View File

@@ -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<Integer, TextTag> normalizedTexts = g.getNormalizedTexts();
int realTextId = getSwf().getCharacterId(this);