The blade music player is crashing for deleting the newly/latest created playlist

in #utopian-io5 years ago

Project Information

Expected behavior

The users should be able to delete the playlist successfully without the crashing.

Actual behavior

The application crashes when I try to delete the newly created playlist.

How to reproduce

  1. Open the app and go to the "Songs" menu.
  2. Choose a song and click on ⋮ (Three dots/ Vertical ellipsis) at the side of the song.
  3. Then click on "Add to playlist".
  4. After that click on the"New Playlist" to create a new playlist.
  5. Give a name and click ok. (Your playlist will successfully be created)
  6. Then delete your newly created playlist.
  7. See error.
  • App version: v1.4.0.1
  • Device: Samsung A5
  • Operating system: Android 6.0.1

Recording Of The Bug

bladebug

GitHub Account

https://github.com/sagorahmed

Logcat

D AndroidRuntime: Shutting down VM

04-03 14:53:04.258 30746 30746 E AndroidRuntime: FATAL EXCEPTION: main

04-03 14:53:04.258 30746 30746 E AndroidRuntime: Process: v.blade, PID: 30746

04-03 14:53:04.258 30746 30746 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference

04-03 14:53:04.258 30746 30746 E AndroidRuntime:    at v.blade.library.sources.Source$1.removePlaylist(Source.java:462)

04-03 14:53:04.258 30746 30746 E AndroidRuntime:    at v.blade.ui.MainActivity$4$1$2.onClick(MainActivity.java:316)

04-03 14:53:04.258 30746 30746 E AndroidRuntime:    at android.support.v7.app.AlertController$ButtonHandler.handleMessage(AlertController.java:166)

04-03 14:53:04.258 30746 30746 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:102)

04-03 14:53:04.258 30746 30746 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:148)

04-03 14:53:04.258 30746 30746 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:7325)

04-03 14:53:04.258 30746 30746 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)

04-03 14:53:04.258 30746 30746 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)

04-03 14:53:04.258 30746 30746 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Sort:  

Hi @sagorahmed, thanks for making this report.

I was able to reproduce the behavior just like you described. Deleting a newly created playlist results in a crash. I see the PO has also acknowledged the crash.

  1. The expected and actual behavior were very well written.
  2. The steps you provided were easy to follow. The recording very well complemented the written steps.
  3. Your post title ought to include the app name and version number, as well as a brief description of the occuring issue ([Product Name] [Product Version] – Succinct description of the bug).

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!

Hello @fego, thanks for reviewing my contribution.

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!