1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-11-10 20:23:01 +00:00

Fix random NullPointerException in PlaylistFragment

This commit is contained in:
Stypox
2021-03-28 22:25:51 +02:00
parent be4d12789d
commit 3e8cba745a

View File

@@ -423,8 +423,10 @@ public class PlaylistFragment extends BaseListInfoFragment<PlaylistInfo> {
@Override @Override
public void setTitle(final String title) { public void setTitle(final String title) {
super.setTitle(title); super.setTitle(title);
if (headerBinding != null) {
headerBinding.playlistTitleView.setText(title); headerBinding.playlistTitleView.setText(title);
} }
}
private void onBookmarkClicked() { private void onBookmarkClicked() {
if (isBookmarkButtonReady == null || !isBookmarkButtonReady.get() if (isBookmarkButtonReady == null || !isBookmarkButtonReady.get()