mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-07-07 20:30:28 +03:00
Fix a crash with null media URLs
This commit is contained in:
parent
da67ec0e03
commit
bc27445103
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ public class FragmentMedia extends Fragment {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void loadVideo(String url, String type) {
|
private void loadVideo(String url, String type) {
|
||||||
if (binding == null || !isAdded() || getActivity() == null) {
|
if (binding == null || !isAdded() || getActivity() == null || url == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
binding.pbarInf.setIndeterminate(false);
|
binding.pbarInf.setIndeterminate(false);
|
||||||
|
|
Loading…
Reference in a new issue