Merge pull request #3929 from ByteHamster/do-not-try-to-load-null

Do not try to load image when media is null
This commit is contained in:
H. Lehmann 2020-03-16 00:58:27 +01:00 committed by GitHub
commit e458641181
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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