Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSONException in ObservationViewerFragment$PhotosViewPagerAdapter.instantiateItem #1320

Open
kueda opened this issue Dec 18, 2023 · 1 comment
Labels

Comments

@kueda
Copy link
Member

kueda commented Dec 18, 2023

https://console.firebase.google.com/u/1/project/inaturalist-ios/crashlytics/app/android:org.inaturalist.android/issues/088761ec159d881ab0a6abf7de3b8122

Fatal Exception: java.lang.RuntimeException: org.json.JSONException: Index 0 out of range [0..0)
       at org.inaturalist.android.ObservationViewerFragment$PhotosViewPagerAdapter.instantiateItem(ObservationViewerFragment.java:489)
       at androidx.viewpager.widget.ViewPager.addNewItem(ViewPager.java:1010)
       at androidx.viewpager.widget.ViewPager.populate(ViewPager.java:1158)
       at androidx.viewpager.widget.ViewPager.populate(ViewPager.java:1092)
       at androidx.viewpager.widget.ViewPager.setAdapter(ViewPager.java:540)
       at org.inaturalist.android.ObservationViewerFragment.reloadPhotos(ObservationViewerFragment.java:3184)
       at org.inaturalist.android.ObservationViewerFragment.access$300(ObservationViewerFragment.java:112)
       at org.inaturalist.android.ObservationViewerFragment$ObservationReceiver.onReceive(ObservationViewerFragment.java:3096)
@kueda kueda added the bug label Dec 18, 2023
@kueda kueda changed the title RuntimeException in ObservationViewerFragment JSONException in ObservationViewerFragment$PhotosViewPagerAdapter.instantiateItem Dec 18, 2023
budowski added a commit that referenced this issue Dec 31, 2023
budowski added a commit that referenced this issue Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant