Merge pull request #4163 from ByteHamster/fix-theme-switch-crash
Fixed crash when switching theme
This commit is contained in:
commit
62fc413f9c
|
@ -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…
Reference in New Issue