-Fixed potential NPE when updating thumbnail in background player.

This commit is contained in:
John Zhen Mo 2018-06-28 12:18:02 -07:00
parent 7f7145e8de
commit ca679f5932
1 changed files with 1 additions and 0 deletions

View File

@ -295,6 +295,7 @@ public final class BackgroundPlayer extends Service {
//////////////////////////////////////////////////////////////////////////*/
private void updateNotificationThumbnail() {
if (basePlayerImpl == null) return;
if (notRemoteView != null) {
notRemoteView.setImageViewBitmap(R.id.notificationCover,
basePlayerImpl.getThumbnail());