Bug: JZVD.[ V, 7.0.1] App crashed in Change to android.media.Mediaplayer when I clicked on the back button

in #utopian-io5 years ago

Project Information

Describe the bug.

When I clicked on Api and click on Custom Mediaplayer, then click on Change to android.media.Mediaplayer and when I click on the phones back button, the app crashed.

Steps to reproduce.

  • Launch the app.

  • Clicked on the 'Api'

  • Then, click on 'Custom Mediaplayer'

  • Click on 'Change to android.media.Mediaplayer' and press the phone back button.

  • And note the bug

Expected Behaviour

I don't expect the app to crash when I made the changes, and click on the back button.

Screen recording

Devices and Versions):)

  • Device: [Itel]

  • Version [6.1]

  • App version [7.0.1]

Log

05-06 17:40:23.408 10587 10587 E AndroidRuntime: Process: cn.jzvd.demo, PID: 10587
meException: Unable to pause activity {cn.jzvd.demo/cn.jzvd.demo.ActivityApiCustomMedia}: java.lang.NullPointerException: Attempt to invoke virtual method 'void cn.jzvd.u.g()' on a null object reference05-06 17:40:23.408 10587 10587 E AndroidRuntime: java.lang.Runti
05-06 17:40:23.408 10587 10587 E AndroidRuntime:    at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3396)
05-06 17:40:23.408 10587 10587 E AndroidRuntime:    at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3355)
05-06 17:40:23.408 10587 10587 E AndroidRuntime:    at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3330)
05-06 17:40:23.408 10587 10587 E AndroidRuntime:    at android.app.ActivityThread.-wrap13(ActivityThread.java)
05-06 17:40:23.408 10587 10587 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1363)
05-06 17:40:23.408 10587 10587 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:102)
05-06 17:40:23.408 10587 10587 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:148)
05-06 17:40:23.408 10587 10587 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:5452)
05-06 17:40:23.408 10587 10587 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-06 17:40:23.408 10587 10587 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781)
05-06 17:40:23.408 10587 10587 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:671)
05-06 17:40:23.408 10587 10587 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void cn.jzvd.u.g()' on a null object reference
05-06 17:40:23.408 10587 10587 E AndroidRuntime:    at cn.jzvd.z.v()
05-06 17:40:23.408 10587 10587 E AndroidRuntime:    at cn.jzvd.JzvdStd.v()
05-06 17:40:23.408 10587 10587 E AndroidRuntime:    at cn.jzvd.z.w()
05-06 17:40:23.408 10587 10587 E AndroidRuntime:    at cn.jzvd.demo.ActivityApiCustomMedia.onPause()
05-06 17:40:23.408 10587 10587 E AndroidRuntime:    at android.app.Activity.performPause(Activity.java:6417)
05-06 17:40:23.408 10587 10587 E AndroidRuntime:    at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1314)
05-06 17:40:23.408 10587 10587 E AndroidRuntime:    at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3382)```
Sort:  

Hi @darewealth, thanks for making this report.

This appears to have been fixed by the PO. Great of you to have provided a logcat. This must have helped narrow down the search for what possibly went wrong.

The bug description is well written, same as the expected behavior. Also, the steps looked easy enough to follow.

On the post title, I believe that it could have been better worded.

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 @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.02% 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.29
TRX 0.12
JST 0.034
BTC 63453.92
ETH 3283.73
USDT 1.00
SBD 3.89