Back to Top

Bug Report - Widget crashes if app hasn't had a first run.

4 posts / 0 new
Last post
AshtonBRSC
Offline
Last seen: 7 years 3 months ago
Joined: 11/30/2008 - 11:41
Bug Report - Widget crashes if app hasn't had a first run.

This is not a bug that most people will come across but I installed the app from the market, added the widget to the home screen and clicked play and it crashed with the following logcat:

W/dalvikvm( 823): threadid=15: thread exiting with uncaught exception (group=0x4001da28)
E/AndroidRuntime( 823): Uncaught handler: thread Thread-8 exiting due to uncaught exception
E/AndroidRuntime( 823): java.lang.NullPointerException
E/AndroidRuntime( 823): at com.snoggdoggler.android.doggcatcher.branding.Branding.addInitialFeeds(Branding.java:70)
E/AndroidRuntime( 823): at com.snoggdoggler.rss.RssDbAdapter$DatabaseHelper.onCreate(RssDbAdapter.java:118)
E/AndroidRuntime( 823): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:106)
E/AndroidRuntime( 823): at com.snoggdoggler.rss.RssDbAdapter.open(RssDbAdapter.java:206)
E/AndroidRuntime( 823): at com.snoggdoggler.rss.RssManager$1.run(RssManager.java:218)

Which is probably no surprise since I hadn't run the actual application to set up the databases but it would have been better if it had just opened the application instead of crashing.

eric
Offline
Last seen: 5 months 3 weeks ago
Joined: 11/06/2008 - 22:02
Got it

Yep, but not so good for the few that do it :-)

I'll get it fixed in the next release.

Thanks.

http://mantis.snoggdoggler.com/view.php?id=244

AshtonBRSC
Offline
Last seen: 7 years 3 months ago
Joined: 11/30/2008 - 11:41
Similar problem but this time

Similar problem but this time after running the app to set up the databases. After rebooting the phone and clicking on next track before opening the app I get this:

249 AndroidRuntime E Uncaught handler: thread main exiting due to uncaught exception
249 AndroidRuntime E java.lang.RuntimeException: Unable to start service com.snoggdoggler.android.doggcatcher.DoggCatcherService@430fafc0 with Intent { act=com.snoggdoggler.android.doggcatcher.nextitem cmp=com.snoggdoggler.android.applications.doggcatcher.v1_0/com.snoggdoggler.android.doggcatcher.DoggCatcherService }: java.lang.NullPointerException
249 AndroidRuntime E at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2784)
249 AndroidRuntime E at android.app.ActivityThread.access$3400(ActivityThread.java:116)
249 AndroidRuntime E at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1855)
249 AndroidRuntime E at android.os.Handler.dispatchMessage(Handler.java:99)
249 AndroidRuntime E at android.os.Looper.loop(Looper.java:123)
249 AndroidRuntime E at android.app.ActivityThread.main(ActivityThread.java:4203)
249 AndroidRuntime E at java.lang.reflect.Method.invokeNative(Native Method)
249 AndroidRuntime E at java.lang.reflect.Method.invoke(Method.java:521)
249 AndroidRuntime E at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
249 AndroidRuntime E at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
249 AndroidRuntime E at dalvik.system.NativeStart.main(Native Method)
249 AndroidRuntime E Caused by: java.lang.NullPointerException
249 AndroidRuntime E at com.snoggdoggler.android.doggcatcher.DoggCatcherService.onStart(DoggCatcherService.java:59)
249 AndroidRuntime E at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2776)
249 AndroidRuntime E ... 10 more

Pressing the play button works fine

eric
Offline
Last seen: 5 months 3 weeks ago
Joined: 11/06/2008 - 22:02
Bug #2

Good catch.

I created another issue for this.

http://mantis.snoggdoggler.com/view.php?id=245