fix: catches null value and prepares bundle appropriately adding single track to expected array list. closes #58

This commit is contained in:
eddyizm 2025-08-26 21:57:20 -07:00
parent 7d843390db
commit 4be0acf76c
No known key found for this signature in database
GPG key ID: CF5F671829E8158A
3 changed files with 14 additions and 5 deletions

View file

@ -21,7 +21,7 @@ public class PlaylistChooserViewModel extends AndroidViewModel {
private final PlaylistRepository playlistRepository;
private final MutableLiveData<List<Playlist>> playlists = new MutableLiveData<>(null);
private ArrayList<Child> toAdd;
private ArrayList<Child> toAdd = new ArrayList<>();
public PlaylistChooserViewModel(@NonNull Application application) {
super(application);