Fixed NPE

This commit is contained in:
ByteHamster 2020-05-27 11:20:17 +02:00
parent 4b2aa3e8b0
commit 21f62e4129
1 changed files with 1 additions and 1 deletions

View File

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