create account

The application crashes and cannot be used again when playing music files that have been deleted by ahyar92

View this thread on: hive.blogpeakd.comecency.com
· @ahyar92 ·
$12.82
The application crashes and cannot be used again when playing music files that have been deleted
### Project Information
- Repository : [Bop - Music Player](https://github.com/iamSahdeep/Bop)
- Title : Bop - Music Player
- Publisher : Emicla Developers (Sahdeep Singh)

### Expected behavior
Supposedly, when I play deleted music files there will be no crashes. And it should, when a user plays a deleted file, a short message will appear like "**File not found**".

### Actual behavior
When I tried playing one of the music in the application, I accidentally deleted the music that I played in the file manager. Then I returned to the album page and played another music. And I see the music files that I have deleted are still available on the Album page. Then I tried clicking the music file that I deleted earlier. Suddenly the application crashes and exits by itself. Then I tried to reopen the application but it couldn't and the crash continued. So I have to restart the application.

### How to reproduce
**Steps to reproduce the behavior:**
1. Install and open the application
2. Then go to the album page and play one of the music
3. Next, enter the file manager page and delete the music you are playing
4. Then go back to the application and enter the album page again, then you will see the deleted file still exists and is still playing.
4. Then play another song, and then click on the music file that you deleted earlier.
5. then the error will be seen

### Environment
Tested on 2 devices:

<table>
<thead>
<tr><th>Device</th><th>Android Version</th>
</thead>
<tbody>
<tr><td>VIVO Y81</td><td>Oreo 8.1.0 (CPU: Octa-core Max 2.0 GHz, RAM: 3 GB)</td>
<tr><td>Realmi U1</td><td>Oreo 8.1.0 (Octa-core (4x2.1 GHz Cortex-A73 & 4x2.0 GHz Cortex-A53, RAM: 4 GB)</td>
</table>

####  <center>Application version: v1.2</center>
---
### Recording Of The Bug
https://youtu.be/ojSssTzUOdg

---

### Logcat
``` 
--------- beginning of crash
03-23 21:46:18.147  7424  7424 E AndroidRuntime: FATAL EXCEPTION: main
03-23 21:46:18.147  7424  7424 E AndroidRuntime: Process: com.sahdeepsingh.Bop, PID: 7424
03-23 21:46:18.147  7424  7424 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.sahdeepsingh.Bop.c.c.b()' on a null object reference
03-23 21:46:18.147  7424  7424 E AndroidRuntime: 	at com.sahdeepsingh.Bop.g.b.a(Unknown Source:6)
03-23 21:46:18.147  7424  7424 E AndroidRuntime: 	at com.sahdeepsingh.Bop.services.ServicePlayMusic.w(Unknown Source:15)
03-23 21:46:18.147  7424  7424 E AndroidRuntime: 	at com.sahdeepsingh.Bop.services.ServicePlayMusic.h(Unknown Source:79)
03-23 21:46:18.147  7424  7424 E AndroidRuntime: 	at com.sahdeepsingh.Bop.a.c$1.onClick(Unknown Source:13)
03-23 21:46:18.147  7424  7424 E AndroidRuntime: 	at android.view.View.performClick(View.java:6325)
03-23 21:46:18.147  7424  7424 E AndroidRuntime: 	at android.view.View$PerformClick.run(View.java:25098)
03-23 21:46:18.147  7424  7424 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:790)
03-23 21:46:18.147  7424  7424 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:99)
03-23 21:46:18.147  7424  7424 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:192)
03-23 21:46:18.147  7424  7424 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6779)
03-23 21:46:18.147  7424  7424 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
03-23 21:46:18.147  7424  7424 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:445)
03-23 21:46:18.147  7424  7424 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:867)
03-23 21:46:18.154  1432  1943 D SLService: ppCra : com.sahdeepsingh.Bop pid : 7424
```
---
### Proof of Work Done
[Submitted the issue on GitHub + PO response](https://github.com/iamSahdeep/Bop/issues/39)
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 84 others
properties (23)
authorahyar92
permlinkthe-application-crashes-and-cannot-be-used-again-when-playing-music-files-that-have-been-deleted
categoryutopian-io
json_metadata{"tags":["utopian-io","bug-hunting","bobmusicplayer","bughunter"],"image":["https://img.youtube.com/vi/ojSssTzUOdg/0.jpg"],"links":["https://github.com/iamSahdeep/Bop","https://youtu.be/ojSssTzUOdg","https://github.com/iamSahdeep/Bop/issues/39"],"app":"steemit/0.1","format":"markdown"}
created2019-03-24 12:24:09
last_update2019-03-24 12:24:09
depth0
children5
last_payout2019-03-31 12:24:09
cashout_time1969-12-31 23:59:59
total_payout_value9.782 HBD
curator_payout_value3.034 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,817
author_reputation11,033,190,356,395
root_title"The application crashes and cannot be used again when playing music files that have been deleted"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id81,849,783
net_rshares19,751,758,110,747
author_curate_reward""
vote details (148)
@fego ·
$10.64
Hi @ahyar92, thanks for making this contribution.

I was able to reproduce the crash following the steps you provided. Although I find it strange that you should delete a song from the file manager while it's still playing.  

Your actual behavior should have been described with fewer lines of text. The bulkier the essay, the more difficult it is to keep up. Always keep your texts short and precise when possible.

Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/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](https://review.utopian.io/result/5/3-1-1-2-2-3-).

---- 
Need help? Chat with us on [Discord](https://discord.gg/uTyJkNm).

[[utopian-moderator]](https://join.utopian.io/)
πŸ‘  , , , , , , , , , , , , , , , , ,
properties (23)
authorfego
permlinkre-ahyar92-the-application-crashes-and-cannot-be-used-again-when-playing-music-files-that-have-been-deleted-20190327t032730190z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["ahyar92"],"links":["https://join.utopian.io/guidelines","https://review.utopian.io/result/5/3-1-1-2-2-3-","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"}
created2019-03-27 03:27:30
last_update2019-03-27 03:27:30
depth1
children1
last_payout2019-04-03 03:27:30
cashout_time1969-12-31 23:59:59
total_payout_value8.088 HBD
curator_payout_value2.552 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length864
author_reputation168,836,422,039,217
root_title"The application crashes and cannot be used again when playing music files that have been deleted"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,018,376
net_rshares16,194,301,710,618
author_curate_reward""
vote details (18)
@utopian-io ·
Thank you for your review, @fego! Keep up the good work!
properties (22)
authorutopian-io
permlinkre-re-ahyar92-the-application-crashes-and-cannot-be-used-again-when-playing-music-files-that-have-been-deleted-20190327t032730190z-20190329t181114z
categoryutopian-io
json_metadata"{"app": "beem/0.20.17"}"
created2019-03-29 18:11:15
last_update2019-03-29 18:11:15
depth2
children0
last_payout2019-04-05 18:11:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length56
author_reputation152,955,367,999,756
root_title"The application crashes and cannot be used again when playing music files that have been deleted"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,163,637
net_rshares0
@rizfit ·
mantap bang,,terus berkarya,mohon bantuan nya??

Posted using [Partiko Android](https://partiko.app/referral/rizfit)
properties (22)
authorrizfit
permlinkrizfit-re-ahyar92-the-application-crashes-and-cannot-be-used-again-when-playing-music-files-that-have-been-deleted-20190324t153234970z
categoryutopian-io
json_metadata{"app":"partiko","client":"android"}
created2019-03-24 15:32:36
last_update2019-03-24 15:32:36
depth1
children0
last_payout2019-03-31 15:32:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length116
author_reputation2,138,187,694
root_title"The application crashes and cannot be used again when playing music files that have been deleted"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id81,860,297
net_rshares0
@steem-ua ·
#### Hi @ahyar92!

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](https://discord.gg/KpBNYGz)**
properties (22)
authorsteem-ua
permlinkre-the-application-crashes-and-cannot-be-used-again-when-playing-music-files-that-have-been-deleted-20190327t144851z
categoryutopian-io
json_metadata"{"app": "beem/0.20.19"}"
created2019-03-27 14:48:51
last_update2019-03-27 14:48:51
depth1
children0
last_payout2019-04-03 14:48:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length286
author_reputation23,214,230,978,060
root_title"The application crashes and cannot be used again when playing music files that have been deleted"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,048,272
net_rshares0
@utopian-io ·
Hey, @ahyar92!

**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](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)).

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

<a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
properties (22)
authorutopian-io
permlinkre-the-application-crashes-and-cannot-be-used-again-when-playing-music-files-that-have-been-deleted-20190327t224924z
categoryutopian-io
json_metadata"{"app": "beem/0.20.17"}"
created2019-03-27 22:49:24
last_update2019-03-27 22:49:24
depth1
children0
last_payout2019-04-03 22:49:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length589
author_reputation152,955,367,999,756
root_title"The application crashes and cannot be used again when playing music files that have been deleted"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,065,146
net_rshares0