fix: null checking

This commit is contained in:
antonio 2023-07-17 10:55:40 +02:00
parent dc13beca49
commit e60c0e312c

View file

@ -76,7 +76,7 @@ public class SongHorizontalAdapter extends RecyclerView.Adapter<SongHorizontalAd
}
public void setItems(List<Child> songs) {
this.songs = songs;
this.songs = songs != null ? songs : Collections.emptyList();
notifyDataSetChanged();
}