Null checking
This commit is contained in:
1 parent
1fce57e119
commit
e71cb5fd5c
1 file changed
+1
-1
@@ -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