From c9817580980c38f4d4b299518bc0716b664a05eb Mon Sep 17 00:00:00 2001 From: Honfika Date: Fri, 7 Mar 2014 23:02:29 +0100 Subject: [PATCH] small fix --- trunk/src/com/jpexs/decompiler/flash/SWF.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trunk/src/com/jpexs/decompiler/flash/SWF.java b/trunk/src/com/jpexs/decompiler/flash/SWF.java index 74076eb9e..1635b82ff 100644 --- a/trunk/src/com/jpexs/decompiler/flash/SWF.java +++ b/trunk/src/com/jpexs/decompiler/flash/SWF.java @@ -2311,6 +2311,9 @@ public final class SWF implements TreeItem, Timelined { public static void frameToImage(Timeline timeline, int frame,Point mousePos,int mouseButton, SerializableImage image, Matrix transformation, ColorTransform colorTransform) { float unzoom = (float) SWF.unitDivisor; + if (timeline.frames.size() <= frame) { + return; + } Frame frameObj = timeline.frames.get(frame); Graphics2D g = (Graphics2D) image.getGraphics(); g.setPaint(frameObj.backgroundColor.toColor());