Project Information
Repository:
https://github.com/AugustToko/ACG-PlayerProject Name: ACG-Player
The issue submitted on GitHub: https://github.com/AugustToko/ACG-Player/issues/38
My github link: https://github.com/darewealth
Describe the bug
When I clicked on the shuffle icon in the trash can the app crashed
To Reproduce
Click on the playlist
Go to trash can
Then, click on the shuffle icon by the right at the top
See error
Expected behavior
I expect to get a popup message that there is not music to shuffle, or it shouldn't have a negative effect.
Screenshots
Smartphone
Device: [Gionee X1]
OS: [7.0]
Version 2.6.3.5(20190527)
Log
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: Process: top.geek_studio.chenlongcould.musicplayer.Common, PID: 31617
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: java.lang.RuntimeException: Unable to destroy activity {top.geek_studio.chenlongcould.musicplayer.Common/top.geek_studio.chenlongcould.musicplayer.activity.ListViewActivity}: java.lang.NullPointerException: Attempt to read from field 'int i.a.a.b.h.f.Uvc' on a null object reference
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4410)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4428)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at android.app.ActivityThread.-wrap5(Unknown Source:0)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1673)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6523)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:857)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to read from field 'int i.a.a.b.h.f.Uvc' on a null object reference
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at top.geek_studio.chenlongcould.musicplayer.activity.ListViewActivity.onDestroy(SourceFile:12)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at android.app.Activity.performDestroy(Activity.java:7232)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1249)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4397)```
Hi @darewealth, thanks for making this report.
Thanks for providing a crash log. But even without the trace, we can tell it is from trying to initiate shuffle on the empty playlist. A good fix will be to add more error prompts to the feature. I see the PO has acknowledged the bug and claims to have fixed it.
I 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]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you for your review, @fego! Keep up the good work!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hi @darewealth!
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
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hey, @darewealth!
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!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hi, @darewealth!
You just got a 1.11% 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.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit