mcruncher / worshipsongs-android

Android app for Worship Songs
GNU General Public License v3.0
8 stars 8 forks source link

App crashes when a Favourite doesn't have the song anymore #463

Closed madasamys closed 6 years ago

madasamys commented 6 years ago

We found from Google developer console that the app crashed in various devices. Below is the crash details

android.database.CursorIndexOutOfBoundsException: 
  at android.database.AbstractCursor.checkPosition (AbstractCursor.java:426)
  at android.database.AbstractWindowedCursor.checkPosition (AbstractWindowedCursor.java:136)
  at android.database.AbstractWindowedCursor.getString (AbstractWindowedCursor.java:50)
  at org.worshipsongs.service.AuthorService.getAuthorSong (AuthorService.java:84)
  at org.worshipsongs.service.AuthorService.findAuthorNameByTitle (AuthorService.java:77)
  at org.worshipsongs.fragment.SongContentPortraitViewFragment.setSong (SongContentPortraitViewFragment.java:151)
  at org.worshipsongs.fragment.SongContentPortraitViewFragment.initSetUp (SongContentPortraitViewFragment.java:125)
  at org.worshipsongs.fragment.SongContentPortraitViewFragment.onCreateView (SongContentPortraitViewFragment.java:104)
  at android.support.v4.app.Fragment.performCreateView (Fragment.java:2192)
  at android.support.v4.app.FragmentManagerImpl.moveToState (FragmentManager.java:1299)