Merge pull request #4198 from ByteHamster/fix-npe

Fixed NPE
This commit is contained in:
H. Lehmann 2020-05-27 22:45:31 +02:00 committed by GitHub
commit 5da714ce9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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());