diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/morphshape/SVGMorphShapeExporter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/morphshape/SVGMorphShapeExporter.java index 76ec7a541..d3713b17e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/morphshape/SVGMorphShapeExporter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/morphshape/SVGMorphShapeExporter.java @@ -171,8 +171,10 @@ public class SVGMorphShapeExporter extends DefaultSVGMorphShapeExporter { thickness *= zoom / SWF.unitDivisor; thicknessEnd *= zoom / SWF.unitDivisor; path.setAttribute("fill", "none"); - path.setAttribute("stroke", color.toHexRGB()); - path.appendChild(createAnimateElement("stroke", color.toHexRGB(), colorEnd.toHexRGB())); + if (color != null) { + path.setAttribute("stroke", color.toHexRGB()); + path.appendChild(createAnimateElement("stroke", color.toHexRGB(), colorEnd.toHexRGB())); + } path.setAttribute("stroke-width", Double.toString(thickness == 0 ? 1 : thickness)); path.appendChild(createAnimateElement("stroke-width", thickness, thicknessEnd));