fix: Prevent crash when getting artist radio and song list is null

This commit is contained in:
Jaime García
2025-09-23 23:45:00 +02:00
parent 2e29e9537a
commit a9318ec5d0

View File

@@ -160,7 +160,7 @@ public class ArtistPageFragment extends Fragment implements ClickCallback {
bind.artistPageRadioButton.setOnClickListener(v -> {
artistPageViewModel.getArtistInstantMix().observe(getViewLifecycleOwner(), songs -> {
if (!songs.isEmpty()) {
if (songs != null && !songs.isEmpty()) {
MediaManager.startQueue(mediaBrowserListenableFuture, songs, 0);
activity.setBottomSheetInPeek(true);
} else {