Add null object checker

This commit is contained in:
CappielloAntonio
2021-08-15 16:41:00 +02:00
parent a692862b02
commit 54c01d4dfb

View File

@@ -2,7 +2,6 @@ package com.cappielloantonio.play.ui.fragment;
import android.os.Bundle;
import android.os.Handler;
import android.text.Html;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@@ -279,7 +278,7 @@ public class PlayerBottomSheetFragment extends Fragment implements MusicServiceE
final Handler handler = new Handler();
final Runnable r = () -> {
bodyBind.playerSongCoverViewPager.setCurrentItem(position, false);
if (bind != null) bodyBind.playerSongCoverViewPager.setCurrentItem(position, false);
};
handler.postDelayed(r, 100);
}