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

in #utopian-io5 years ago

Project Information

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

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)
Sort:  

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

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

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 or Steeditor).

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

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.28
TRX 0.13
JST 0.032
BTC 60964.72
ETH 2920.62
USDT 1.00
SBD 3.64