mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-02 02:13:33 +00:00
fix: null checking
This commit is contained in:
parent
c977982d64
commit
ae7761cb96
1 changed files with 3 additions and 1 deletions
|
|
@ -105,7 +105,9 @@ public class AlbumRepository {
|
||||||
List<Child> tracks = new ArrayList<>();
|
List<Child> tracks = new ArrayList<>();
|
||||||
|
|
||||||
if (response.isSuccessful() && response.body() != null && response.body().getSubsonicResponse().getAlbum() != null) {
|
if (response.isSuccessful() && response.body() != null && response.body().getSubsonicResponse().getAlbum() != null) {
|
||||||
tracks.addAll(response.body().getSubsonicResponse().getAlbum().getSongs());
|
if (response.body().getSubsonicResponse().getAlbum().getSongs() != null) {
|
||||||
|
tracks.addAll(response.body().getSubsonicResponse().getAlbum().getSongs());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
albumTracks.setValue(tracks);
|
albumTracks.setValue(tracks);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue