mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
Null checking
This commit is contained in:
parent
1fce57e119
commit
e71cb5fd5c
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ public class MediaManager {
|
||||||
if (mediaBrowserListenableFuture.isDone()) {
|
if (mediaBrowserListenableFuture.isDone()) {
|
||||||
if (mediaBrowserListenableFuture.get().getMediaItemCount() < 1) {
|
if (mediaBrowserListenableFuture.get().getMediaItemCount() < 1) {
|
||||||
List<Song> songs = getQueueRepository().getSongs();
|
List<Song> songs = getQueueRepository().getSongs();
|
||||||
if (songs.size() >= 1) {
|
if (songs != null && songs.size() >= 1) {
|
||||||
init(mediaBrowserListenableFuture, context, songs);
|
init(mediaBrowserListenableFuture, context, songs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue