Fixed NPE
This commit is contained in:
parent
4b2aa3e8b0
commit
21f62e4129
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue