diff --git a/RedBookPlayer/GUI/PlayerViewModel.cs b/RedBookPlayer/GUI/PlayerViewModel.cs index cee36af..467895b 100644 --- a/RedBookPlayer/GUI/PlayerViewModel.cs +++ b/RedBookPlayer/GUI/PlayerViewModel.cs @@ -197,17 +197,17 @@ namespace RedBookPlayer.GUI /// /// Begin playback /// - public void Play() => _player.Play(); + public void Play() => _player?.Play(); /// /// Pause current playback /// - public void Pause() => _player.Pause(); + public void Pause() => _player?.Pause(); /// /// Stop current playback /// - public void Stop() => _player.Stop(); + public void Stop() => _player?.Stop(); /// /// Move to the next playable track