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:
@@ -1159,6 +1159,8 @@ namespace BAKKA_Editor
|
||||
|
||||
private void songTrackBar_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (currentSong == null)
|
||||
return;
|
||||
if (IsSongPlaying())
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user