Fixed crash when switching theme

This commit is contained in:
ByteHamster 2020-05-16 19:29:30 +02:00
parent 92033f8373
commit b4333a1129

View File

@ -97,7 +97,7 @@ public class ItemDescriptionFragment extends Fragment {
@Nullable
private String loadData() {
if (controller.getMedia() == null) {
if (controller != null && controller.getMedia() == null) {
return null;
}
Timeline timeline = new Timeline(getActivity(), controller.getMedia());