[Android] Avoid a crash in AudioService
Jean-Baptiste Kempf
git at videolan.org
Wed Jul 4 13:12:06 CEST 2012
android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jul 4 13:11:53 2012 +0200| [99ce9dbcd91daae35c2e1442f2d9535d34a23a5e] | committer: Jean-Baptiste Kempf
Avoid a crash in AudioService
> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=99ce9dbcd91daae35c2e1442f2d9535d34a23a5e
---
vlc-android/src/org/videolan/vlc/AudioService.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/AudioService.java b/vlc-android/src/org/videolan/vlc/AudioService.java
index a1f4226..2e94db6 100644
--- a/vlc-android/src/org/videolan/vlc/AudioService.java
+++ b/vlc-android/src/org/videolan/vlc/AudioService.java
@@ -316,6 +316,9 @@ public class AudioService extends Service {
};
private void showNotification() {
+ if (mCurrentMedia == null)
+ return;
+
// add notification to status bar
if (mNotification == null) {
mNotification = new Notification(R.drawable.icon, null,
More information about the Android
mailing list