mainform: playback: Check if there's a song before updating song trackbar

This avoids a null pointer dereference due to updating the song's play position before the user picks a song to edit.
This commit is contained in:
Farex-GH
2022-09-11 00:40:28 -07:00
parent 3ffec77d01
commit 3dfdec27c6
+2
View File
@@ -1159,6 +1159,8 @@ namespace BAKKA_Editor
private void songTrackBar_ValueChanged(object sender, EventArgs e)
{
if (currentSong == null)
return;
if (IsSongPlaying())
return;