[Android] Prevent NPE
Geoffrey Métais
git at videolan.org
Fri Oct 3 13:34:43 CEST 2014
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Oct 3 13:31:41 2014 +0200| [eb12d501e91bea3f4ebe903f7cc9cec814c1074e] | committer: Jean-Baptiste Kempf
Prevent NPE
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=eb12d501e91bea3f4ebe903f7cc9cec814c1074e
---
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;
More information about the Android
mailing list