From 3762b1a18c17985229a03f724bd0146c485d2df6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 30 Dec 2023 17:39:44 +0100 Subject: [PATCH] Fixed nullpointer on timeline sound stream detection with scenes --- .../src/com/jpexs/decompiler/flash/timeline/Timeline.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/timeline/Timeline.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/timeline/Timeline.java index 4adb30ce1..527ff1603 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/timeline/Timeline.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/timeline/Timeline.java @@ -644,13 +644,13 @@ public class Timeline { numFramesNoSound++; } frameHasSound = false; - if (sceneOffsets.contains(frame)) { + if (sceneOffsets.contains(frame) && range != null) { if (range.endFrame > -1) { ranges.add(range); } range = new SoundStreamFrameRange(head); range.startFrame = -1; - range.endFrame = -1; + range.endFrame = -1; } }