create account

[Blade player][v1.4.0.1] The app crashes when I tried to change the song after linking it with another by sagorahmed

View this thread on: hive.blogpeakd.comecency.com
· @sagorahmed ·
$12.23
[Blade player][v1.4.0.1] The app crashes when I tried to change the song after linking it with another
#### Project Information
* Repository: https://github.com/Valou3433/blade-player
* Project Name: Blade Player
* The submitted issue is [here](https://github.com/Valou3433/blade-player/issues/34)

#### Expected behavior
I expected that after linking a song to another, the song will stop playing. But this is not weirder than crashing the app by clicking on the next/previous button.

#### Actual behavior
The app crashes after I linked a song to another from the Artist folder and clicked on the previous/next track changer button of that song.


#### How to reproduce
**1.** Open the app and go to "Artists" folder.
**2.** Choose an artist and play a song from it.
**3.** Click on โ‹ฎ (Three dots/ Vertical ellipsis) at the right side of the song.
**4.** Then click "Link to"
**5.** Select a song from your local library. (The song will be successfully added to your chosen song & The song will still be playing in your player).
**6.** Open the current playing song page by tapping on its name. (At the downside of your display).
**7.** At last Click on the next button and notice the bug.

* App version: v1.4.0.1
* Operating system: Android 6.0.1

#### Recording Of The Bug
![bladebug](https://media.giphy.com/media/Y0yXzKuAYalCbXSYdm/giphy.gif)

#### GitHub Account
https://github.com/sagorahmed

#### Logcat
```
04-05 00:16:02.421 26140 26140 E AndroidRuntime: FATAL EXCEPTION: main

04-05 00:16:02.421 26140 26140 E AndroidRuntime: Process: v.blade, PID: 26140

04-05 00:16:02.421 26140 26140 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'v.blade.library.sources.Source v.blade.library.SongSources$SongSource.getSource()' on a null object reference

04-05 00:16:02.421 26140 26140 E AndroidRuntime: 	at v.blade.player.PlayerMediaPlayer.playSong(PlayerMediaPlayer.java:252)

04-05 00:16:02.421 26140 26140 E AndroidRuntime: 	at v.blade.player.PlayerService$2.onSkipToNext(PlayerService.java:157)

04-05 00:16:02.421 26140 26140 E AndroidRuntime: 	at android.support.v4.media.session.MediaSessionCompat$Callback$StubApi21.onSkipToNext(MediaSessionCompat.java:1284)

04-05 00:16:02.421 26140 26140 E AndroidRuntime: 	at android.support.v4.media.session.MediaSessionCompatApi21$CallbackProxy.onSkipToNext(MediaSessionCompatApi21.java:219)

04-05 00:16:02.421 26140 26140 E AndroidRuntime: 	at android.media.session.MediaSession$CallbackMessageHandler.handleMessage(MediaSession.java:1228)

04-05 00:16:02.421 26140 26140 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:102)

04-05 00:16:02.421 26140 26140 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:148)

04-05 00:16:02.421 26140 26140 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7325)

04-05 00:16:02.421 26140 26140 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)

04-05 00:16:02.421 26140 26140 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
```
๐Ÿ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 83 others
properties (23)
authorsagorahmed
permlinkblade-player-v1-4-0-1-the-app-crashes-when-i-tried-to-change-the-song-after-linking-it-with-another-1555241602535
categoryutopian-io
json_metadata{"app":"steeditor/0.1.2","format":"markdown","image":["https://media.giphy.com/media/Y0yXzKuAYalCbXSYdm/giphy.gif"],"tags":["utopian-io","bug-hunting"],"users":[],"links":["https://github.com/Valou3433/blade-player","https://github.com/Valou3433/blade-player/issues/34","https://github.com/sagorahmed"]}
created2019-04-14 11:33:24
last_update2019-04-14 11:33:24
depth0
children4
last_payout2019-04-21 11:33:24
cashout_time1969-12-31 23:59:59
total_payout_value9.236 HBD
curator_payout_value2.996 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,979
author_reputation18,152,120,975,978
root_title"[Blade player][v1.4.0.1] The app crashes when I tried to change the song after linking it with another"
beneficiaries
0.
accountutopian.pay
weight500
max_accepted_payout100,000.000 HBD
percent_hbd10,000
post_id83,075,095
net_rshares20,501,884,790,299
author_curate_reward""
vote details (147)
@steem-ua ·
#### Hi @sagorahmed!

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-blade-player-v1-4-0-1-the-app-crashes-when-i-tried-to-change-the-song-after-linking-it-with-another-1555241602535-20190416t073602z
categoryutopian-io
json_metadata"{"app": "beem/0.20.19"}"
created2019-04-16 07:36:03
last_update2019-04-16 07:36:03
depth1
children0
last_payout2019-04-23 07:36:03
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_length289
author_reputation23,214,230,978,060
root_title"[Blade player][v1.4.0.1] The app crashes when I tried to change the song after linking it with another"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id83,185,777
net_rshares0
@tobias-g ·
$6.48
Thanks for your contribution @sagorahmed

Once again, your steps were very clear and it was extremely easy to replicate, nice work. Overall I believe this issue will affect less users than the one previously mentioned, hence my view on severity, however this was great report and very easy to follow. 

I didn't mention before but it's great to see that you're both reporting and including log-cats, this is great. 

I can see from the comments that project owner has acknowledged and chosen a path forward surrounding this issue based on your report, good work. 

Once again, thanks for your contribution and look forward to seeing more from you soon. 

---

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)
authortobias-g
permlinkre-sagorahmed-blade-player-v1-4-0-1-the-app-crashes-when-i-tried-to-change-the-song-after-linking-it-with-another-1555241602535-20190416t072605077z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["sagorahmed"],"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-04-16 07:26:06
last_update2019-04-16 07:26:06
depth1
children1
last_payout2019-04-23 07:26:06
cashout_time1969-12-31 23:59:59
total_payout_value4.963 HBD
curator_payout_value1.521 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,106
author_reputation101,057,581,296,921
root_title"[Blade player][v1.4.0.1] The app crashes when I tried to change the song after linking it with another"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id83,185,485
net_rshares10,760,550,029,191
author_curate_reward""
vote details (17)
@utopian-io ·
Thank you for your review, @tobias-g! Keep up the good work!
properties (22)
authorutopian-io
permlinkre-re-sagorahmed-blade-player-v1-4-0-1-the-app-crashes-when-i-tried-to-change-the-song-after-linking-it-with-another-1555241602535-20190416t072605077z-20190418t234538z
categoryutopian-io
json_metadata"{"app": "beem/0.20.17"}"
created2019-04-18 23:45:39
last_update2019-04-18 23:45:39
depth2
children0
last_payout2019-04-25 23:45:39
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_length60
author_reputation152,955,367,999,756
root_title"[Blade player][v1.4.0.1] The app crashes when I tried to change the song after linking it with another"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id83,354,661
net_rshares0
@utopian-io ·
Hey, @sagorahmed!

**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-blade-player-v1-4-0-1-the-app-crashes-when-i-tried-to-change-the-song-after-linking-it-with-another-1555241602535-20190416t174117z
categoryutopian-io
json_metadata"{"app": "beem/0.20.17"}"
created2019-04-16 17:41:18
last_update2019-04-16 17:41:18
depth1
children0
last_payout2019-04-23 17:41:18
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_length592
author_reputation152,955,367,999,756
root_title"[Blade player][v1.4.0.1] The app crashes when I tried to change the song after linking it with another"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id83,213,222
net_rshares0