[Android] fix possible crash
Sébastien Toque
git at videolan.org
Fri Dec 14 19:28:06 CET 2012
vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Fri Dec 14 16:12:41 2012 +0100| [823e4b48905788e14f99833e2f46eef708478f5f] | committer: Sébastien Toque
fix possible crash
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=823e4b48905788e14f99833e2f46eef708478f5f
---
vlc-android/src/org/videolan/vlc/AudioService.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/AudioService.java b/vlc-android/src/org/videolan/vlc/AudioService.java
index 696f1d3..d0e313d 100644
--- a/vlc-android/src/org/videolan/vlc/AudioService.java
+++ b/vlc-android/src/org/videolan/vlc/AudioService.java
@@ -353,6 +353,8 @@ public class AudioService extends Service {
case EventManager.MediaPlayerPlaying:
Log.i(TAG, "MediaPlayerPlaying");
+ if (service.mCurrentMedia == null)
+ return;
String location = service.mCurrentMedia.getLocation();
long length = service.mLibVLC.getLength();
DatabaseManager dbManager = DatabaseManager
More information about the Android
mailing list