fix crash when clearing the queue

This commit is contained in:
dkanada 2020-05-23 10:29:33 +09:00
commit 207b075d13
2 changed files with 2 additions and 2 deletions

View file

@ -480,6 +480,8 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP
private void openCurrent() {
synchronized (this) {
// current song will be null when queue is cleared
if (getCurrentSong() == null) return;
playback.setDataSource(getTrackUri(getCurrentSong()));
}
}