Null checking

This commit is contained in:
CappielloAntonio committed 2022-01-04 10:40:45 +01:00
1 parent 4bcca0e5ad
commit 483ce56277
1 file changed
+3 -1
@@ -195,7 +195,9 @@ public class PlayerControllerFragment extends Fragment {
dialog.show(requireActivity().getSupportFragmentManager(), null); dialog.show(requireActivity().getSupportFragmentManager(), null);
}); });
playerBottomSheetViewModel.refreshSongInfo(requireActivity(), song); if (getActivity() != null) {
playerBottomSheetViewModel.refreshSongInfo(requireActivity(), song);
}
} }
}); });
} }