Do not try to load image when media is null

This commit is contained in:
ByteHamster 2020-03-16 00:10:29 +01:00
parent 03d1f41e9b
commit 1b93e7ef10

View File

@ -120,7 +120,7 @@ public class CoverFragment extends Fragment {
@Subscribe(threadMode = ThreadMode.MAIN)
public void onEventMainThread(PlaybackPositionEvent event) {
if (controller == null) {
if (media == null) {
return;
}
displayCoverImage(event.getPosition());