Fixed: Nullpointer after clicking timeline

This commit is contained in:
Jindra Petřík
2024-10-26 14:31:48 +02:00
parent 19f138298e
commit f47feaed1c

View File

@@ -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;