mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-04 08:13:07 +00:00
Null checking
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user