thasmin/Podax — Issue #16: Force close event when pressing play button in fresh install
Author: Tovok7
Created: 2012-01-11 22:44:39+00:00
State: open

In version 2.1 I get this:

E/AndroidRuntime( 2547): FATAL EXCEPTION: main
E/AndroidRuntime( 2547): java.lang.RuntimeException: Unable to create service com.axelby.podax.PlayerService: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
E/AndroidRuntime( 2547): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2076)
E/AndroidRuntime( 2547): at android.app.ActivityThread.access$2500(ActivityThread.java:123)
E/AndroidRuntime( 2547): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:993)
E/AndroidRuntime( 2547): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2547): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 2547): at android.app.ActivityThread.main(ActivityThread.java:3835)
E/AndroidRuntime( 2547): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2547): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 2547): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
E/AndroidRuntime( 2547): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
E/AndroidRuntime( 2547): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2547): Caused by: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
E/AndroidRuntime( 2547): at android.database.AbstractCursor.checkPosition(AbstractCursor.java:580)
E/AndroidRuntime( 2547): at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:214)
E/AndroidRuntime( 2547): at android.database.AbstractWindowedCursor.isNull(AbstractWindowedCursor.java:144)
E/AndroidRuntime( 2547): at android.database.CursorWrapper.isNull(CursorWrapper.java:175)
E/AndroidRuntime( 2547): at com.axelby.podax.PodcastCursor.getDuration(PodcastCursor.java:143)
E/AndroidRuntime( 2547): at com.axelby.podax.PlayerService.changeActivePodcast(PlayerService.java:351)
E/AndroidRuntime( 2547): at com.axelby.podax.PlayerService.moveToNextInQueue(PlayerService.java:332)
E/AndroidRuntime( 2547): at com.axelby.podax.PlayerService.verifyPodcastReady(PlayerService.java:366)
E/AndroidRuntime( 2547): at com.axelby.podax.PlayerService.onCreate(PlayerService.java:71)
E/AndroidRuntime( 2547): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2066)
E/AndroidRuntime( 2547): ... 10 more
W/ActivityManager( 226): Force finishing activity com.axelby.podax/.MainActivity