[Android] Prevent NPE in videos action mode
Geoffrey Métais
git at videolan.org
Tue Jan 16 17:45:21 CET 2018
vlc-android | branch: chromecast | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Dec 29 16:07:03 2017 +0100| [7ec8d67e92bd9137be5d91b8ca9225095501d135] | committer: Geoffrey Métais
Prevent NPE in videos action mode
> https://code.videolan.org/videolan/vlc-android/commit/7ec8d67e92bd9137be5d91b8ca9225095501d135
---
vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
index 49adfaf17..49e412ed5 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
@@ -448,7 +448,7 @@ public class VideoGridFragment extends SortableFragment<VideoListAdapter> implem
}
menu.findItem(R.id.action_video_info).setVisible(count == 1);
menu.findItem(R.id.action_video_play).setVisible(AndroidUtil.isHoneycombOrLater || count == 1);
- menu.findItem(R.id.action_video_append).setVisible(mService.hasMedia() && AndroidUtil.isHoneycombOrLater);
+ menu.findItem(R.id.action_video_append).setVisible(mService != null && mService.hasMedia() && AndroidUtil.isHoneycombOrLater);
return true;
}
More information about the Android
mailing list