From f47feaed1c333c9ca2b1258d73bc31e2d801c637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 26 Oct 2024 14:31:48 +0200 Subject: [PATCH] Fixed: Nullpointer after clicking timeline --- src/com/jpexs/decompiler/flash/easygui/TimelineBodyPanel.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/jpexs/decompiler/flash/easygui/TimelineBodyPanel.java b/src/com/jpexs/decompiler/flash/easygui/TimelineBodyPanel.java index a37ada45c..8a98c9fe4 100644 --- a/src/com/jpexs/decompiler/flash/easygui/TimelineBodyPanel.java +++ b/src/com/jpexs/decompiler/flash/easygui/TimelineBodyPanel.java @@ -567,6 +567,9 @@ public class TimelineBodyPanel extends JPanel implements MouseListener, KeyListe @Override public void mousePressed(MouseEvent e) { + if (timeline == null) { + return; + } Point p = e.getPoint(); p.x = p.x / FRAME_WIDTH; p.y = p.y / FRAME_HEIGHT;