[Android] [PATCH] Prevent NPE
Geoffrey Métais
geoffrey.metais at gmail.com
Fri Oct 3 13:31:41 CEST 2014
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 76df4ab..f75a26b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1463,6 +1463,8 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
};
private void selectAudioTrack() {
+ if (mAudioTracksList == null) return;
+
final String[] arrList = new String[mAudioTracksList.size()];
int i = 0;
int listPosition = 0;
--
1.9.1
More information about the Android
mailing list