The app crashed when I tried to open the hentai after removing it from the favorite list

10개월 전

Related Informations

Describe the bug
When I tried to open hentai after removing it from the favorite list, then the app crashed. 

Expected behavior
I expected that I could open the hentai after removing it from my  favorite list or the hentai would disappear from the favorite list after  removing. 

To Reproduce
Steps to reproduce the behavior:  

  1. Open the app.
  2. Click on the love icon to add it as your favorite.
  3. Now, swipe to the right to see your favorite list.
  4. Then, press the love button again, the app will ask your permission to remove it. Press yes.
  5. At last click on that hentai to open it and notice the crash.
  • Device: Samsung A5
  • OS: Android 6.0.1
  • App Version: 1.0.2

Recording of the bug
https://www.youtube.com/watch?v=TXvJYyflFLo 

Logcat

 

E AndroidRuntime: FATAL EXCEPTION: main
07-19 11:46:38.275 10688 10688 E AndroidRuntime: Process: personal.ttd.nhviewer, PID: 10688

07-19 11:46:38.275 10688 10688 E AndroidRuntime: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0

07-19 11:46:38.275 10688 10688 E AndroidRuntime: at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)

07-19 11:46:38.275 10688 10688 E AndroidRuntime: at java.util.ArrayList.get(ArrayList.java:308)

07-19 11:46:38.275 10688 10688 E AndroidRuntime: at personal.ttd.nhviewer.Controller.fragment.base.ComicListFragment$ComicListAdapter.onListItemClick(ComicListFragment.java:182)

07-19 11:46:38.275 10688 10688 E AndroidRuntime: at personal.ttd.nhviewer.Controller.fragment.base.BaseListFragment$BaseListAdapter$1.onClick(BaseListFragment.java:353)

07-19 11:46:38.275 10688 10688 E AndroidRuntime: at android.view.View.performClick(View.java:5714)

07-19 11:46:38.275 10688 10688 E AndroidRuntime: at android.view.View$PerformClick.run(View.java:22589)

07-19 11:46:38.275 10688 10688 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)

07-19 11:46:38.275 10688 10688 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)

07-19 11:46:38.275 10688 10688 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)

07-19 11:46:38.275 10688 10688 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7325)

07-19 11:46:38.275 10688 10688 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)

07-19 11:46:38.275 10688 10688 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)

07-19 11:46:38.275 10688 10688 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
STEEMKR.COM IS SPONSORED BY
ADVERTISEMENT
Sort Order:  trending

Hi @sagorahmed, thanks for making this contribution

I can see that the contribution has been acknowledged by the PO. I love that you included a logcat but these days we expect a bit of analysis to complement the stack trace. Some explanations on what could have possibly gone wrong

Still a good post. We look forward to more of your reports

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

·

Thank you for your review, @fego! Keep up the good work!

Hey, @sagorahmed!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!