Fixed: Nullpointer after clicking timeline

This commit is contained in:
Jindra Petřík
2024-10-29 16:55:43 +01:00
parent 19f138298e
commit f47feaed1c
@@ -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;