ANIME WATCHER crash when click "watch" if in the episode option we type 0 number #5

in #utopian-io6 years ago

PROJECT INFORMATION

DESCRIBE BUG

when a user wants to watch an episode of an anime, the user just needs to write the episodes number they want to watch, but if the user writes the number "0" and presses the watch button this application crashes

STEP TO REPRODUCE

  • open the app
  • click on dub or sub optiont
  • click on search icon and search any anime you want to watch
  • then chose an anime
  • then in episode option type number"0" and click watch
  • see error

EXPECTED BEHAVIOR

this application will display an error dialog if the user incorrectly wrote the episodes number

device : oppo neo7
os : android 6.0

BUG RECORDING

LOG CAT

Process: com.stuffbox.webscraper, PID: 29335
java.lang.ArrayIndexOutOfBoundsException: length=135; index=-1
    at java.util.ArrayList.get(ArrayList.java:310)
    at com.stuffbox.webscraper.selectEpisode$3.onClick(selectEpisode.java:116)
    at android.view.View.performClick(View.java:4848)
    at android.view.View$PerformClick.run(View.java:20299)
    at android.os.Handler.handleCallback(Handler.java:815)
    at android.os.Handler.dispatchMessage(Handler.java:104)
    at android.os.Looper.loop(Looper.java:218)
    at android.app.ActivityThread.main(ActivityThread.java:5657)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:990)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:785)```
Sort:  

Hi @muhammadarif, thanks for making this contribution.

I see the PO has fixed this in the latest release version of the application. Thanks for providing a logcat. Although one could immediately tell the cause of the crash without a log. The zero input led to the crash

Thank again for the report. I look forward to more of your contributions.

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!

Hi, @muhammadarif!

You just got a 0.06% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

Hi @muhammadarif!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Hey, @muhammadarif!

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!

Coin Marketplace

STEEM 0.20
TRX 0.24
JST 0.037
BTC 96071.21
ETH 3327.74
USDT 1.00
SBD 3.21