mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
fix: null checking
This commit is contained in:
parent
a50fc74117
commit
b8b9c80bdc
1 changed files with 4 additions and 2 deletions
|
|
@ -63,8 +63,10 @@ public class ArtistRepository {
|
|||
if (response.isSuccessful() && response.body() != null) {
|
||||
List<ArtistID3> artists = new ArrayList<>();
|
||||
|
||||
for (IndexID3 index : response.body().getSubsonicResponse().getArtists().getIndices()) {
|
||||
artists.addAll(index.getArtists());
|
||||
if(response.body().getSubsonicResponse().getArtists() != null) {
|
||||
for (IndexID3 index : response.body().getSubsonicResponse().getArtists().getIndices()) {
|
||||
artists.addAll(index.getArtists());
|
||||
}
|
||||
}
|
||||
|
||||
if (random) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue