fix: null checking

This commit is contained in:
antonio committed 2023-08-11 16:20:28 +02:00
1 parent 3d4437151a
commit 37ffb88d67
1 file changed
+1 -1
@@ -162,7 +162,7 @@ public class PlaylistPageFragment extends Fragment implements ClickCallback {
private void initBackCover() {
playlistPageViewModel.getPlaylistSongLiveList().observe(requireActivity(), songs -> {
if (bind != null) {
if (bind != null && songs != null && !songs.isEmpty()) {
Collections.shuffle(songs);
// Pic top-left