OSDN Git Service

Fix crash in music app. Monkey found it, but it's easy to repro by a human too.
authorMarco Nelissen <marcone@google.com>
Fri, 12 Jun 2009 20:39:27 +0000 (13:39 -0700)
committerMarco Nelissen <marcone@google.com>
Fri, 12 Jun 2009 21:35:52 +0000 (14:35 -0700)
src/com/android/music/MediaPlaybackService.java

index f44d5f3..6095c06 100644 (file)
@@ -1143,6 +1143,10 @@ public class MediaPlaybackService extends Service {
                 return;
             }
 
+            if (mPlayListLen <= 0) {
+                return;
+            }
+
             // Store the current file in the history, but keep the history at a
             // reasonable size
             if (mPlayPos >= 0) {