Fixed crash when switching theme
This commit is contained in:
parent
92033f8373
commit
b4333a1129
@ -97,7 +97,7 @@ public class ItemDescriptionFragment extends Fragment {
|
|||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
private String loadData() {
|
private String loadData() {
|
||||||
if (controller.getMedia() == null) {
|
if (controller != null && controller.getMedia() == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
Timeline timeline = new Timeline(getActivity(), controller.getMedia());
|
Timeline timeline = new Timeline(getActivity(), controller.getMedia());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user