mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 21:25:35 +03:00
Merge pull request #8654 from nextcloud/fix-npe-in-preview-media-fragment
Fix NPE when navigating out of PreviewMediaFragment during video loading
This commit is contained in:
commit
5e83b6ca90
1 changed files with 1 additions and 1 deletions
|
@ -507,7 +507,7 @@ public class PreviewMediaFragment extends FileFragment implements OnTouchListene
|
|||
protected void onPostExecute(Uri uri) {
|
||||
final PreviewMediaFragment previewMediaFragment = previewMediaFragmentWeakReference.get();
|
||||
final Context context = previewMediaFragment != null ? previewMediaFragment.getContext() : null;
|
||||
if (previewMediaFragment != null && context != null) {
|
||||
if (previewMediaFragment != null && previewMediaFragment.binding != null && context != null) {
|
||||
if (uri != null) {
|
||||
previewMediaFragment.videoUri = uri;
|
||||
|
||||
|
|
Loading…
Reference in a new issue