inaturalist / iNaturalistAndroid

Android app for iNaturalist.org
https://market.android.com/details?id=org.inaturalist.android
MIT License
165 stars 57 forks source link

CursorIndexOutOfBoundsException in ObservationCursorAdapter.getPhotoInfo #1213

Open kueda opened 2 years ago

kueda commented 2 years ago

https://console.firebase.google.com/u/0/project/inaturalist-ios/crashlytics/app/android:org.inaturalist.android/issues/52911cd0c5bcbb5f7498486a4c1740a9

Fatal Exception: android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 21242
       at android.database.AbstractCursor.checkPosition(AbstractCursor.java:521)
       at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:139)
       at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:53)
       at android.database.CursorWrapper.getString(CursorWrapper.java:141)
       at org.inaturalist.android.ObservationCursorAdapter.getPhotoInfo(ObservationCursorAdapter.java:318)
       at org.inaturalist.android.ObservationCursorAdapter.refreshCursor(ObservationCursorAdapter.java:247)
       at org.inaturalist.android.ObservationCursorAdapter.refreshCursor(ObservationCursorAdapter.java:206)
       at org.inaturalist.android.ObservationListActivity$ObservationSyncProgressReceiver.onReceive(ObservationListActivity.java:1744)
       at androidx.localbroadcastmanager.content.LocalBroadcastManager.executePendingBroadcasts(LocalBroadcastManager.java:313)
kueda commented 1 year ago

Still happening in 1.29.18 (592): https://console.firebase.google.com/u/0/project/inaturalist-ios/crashlytics/app/android:org.inaturalist.android/issues/1a33183630f1eb98a38b0a3eff6249e7