Bug: ACG-Player [V,2.6.5.8]App crashed when I tried to go-back from the History(RAM).

in #utopian-io5 years ago

Project Information

Describe the bug

When I access the playlist and clicked on the History(RAM), the app crashed when I tried to go back with both the app back button and the mobile back button.

To Reproduce

  1. Launch the app

  2. Click on Playlist

  3. Then click on the History (RAM)

  4. And click on the app or phone back button

###nExpected behavior

I expect to use the back button without any issue.

Screenshots

Smartphone

  • Device: [itel]

  • OS: [6.1]

  • Version [2.6.5.8]

Log

06-02 10:50:08.189  8943  8943 E AndroidRuntime: FATAL EXCEPTION: main
06-02 10:50:08.189  8943  8943 E AndroidRuntime: Process: top.geek_studio.chenlongcould.musicplayer.Common, PID: 8943
06-02 10:50:08.189  8943  8943 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 invoke interface method 'void top.geek_studio.chenlongcould.musicplayer.IMuiscService.addToOrderList(top.geek_studio.chenlongcould.musicplayer.model.MusicItem)' on a null object reference
06-02 10:50:08.189  8943  8943 E AndroidRuntime:    at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3846)
06-02 10:50:08.189  8943  8943 E AndroidRuntime:    at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3864)
06-02 10:50:08.189  8943  8943 E AndroidRuntime:    at android.app.ActivityThread.-wrap5(ActivityThread.java)
06-02 10:50:08.189  8943  8943 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1399)
06-02 10:50:08.189  8943  8943 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:102)
06-02 10:50:08.189  8943  8943 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:148)
06-02 10:50:08.189  8943  8943 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:5452)
06-02 10:50:08.189  8943  8943 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
06-02 10:50:08.189  8943  8943 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781)
06-02 10:50:08.189  8943  8943 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:671)
06-02 10:50:08.189  8943  8943 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'void top.geek_studio.chenlongcould.musicplayer.IMuiscService.addToOrderList(top.geek_studio.chenlongcould.musicplayer.model.MusicItem)' on a null object reference
06-02 10:50:08.189  8943  8943 E AndroidRuntime:    at top.geek_studio.chenlongcould.musicplayer.Data.syncPlayOrderList(SourceFile:5)
06-02 10:50:08.189  8943  8943 E AndroidRuntime:    at top.geek_studio.chenlongcould.musicplayer.activity.ListViewActivity.onDestroy(SourceFile:7)
06-02 10:50:08.189  8943  8943 E AndroidRuntime:    at android.app.Activity.performDestroy(Activity.java:6476)
06-02 10:50:08.189  8943  8943 E AndroidRuntime:    at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1145)
06-02 10:50:08.189  8943  8943 E AndroidRuntime:    at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3833)```
Sort:  

Hi, @darewealth. Thank you for your contribution. This behavior is a very weird one I must say. However, it is good to see that the PO got it fixed.
This report is very similar to your previous one. The steps to reproduce are similar as well, however, the cause of the bug (crash) differ, by comparing both logs.
In the future, it would be best to report a similar issue like this one in one issue.

Thank you.

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, @knowledges! Keep up the good work!

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

Hi, @darewealth!

You just got a 1.14% 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.

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!

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.034
BTC 63475.77
ETH 3117.23
USDT 1.00
SBD 3.94