Project Information
- Repository: https://github.com/Valou3433/blade-player
- Project Name: Blade player
- Submitted Issue: here
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
- Open the app and go to the "Songs" menu.
- Choose a song and click on ⋮ (Three dots/ Vertical ellipsis) at the side of the song.
- Then click on "Add to playlist".
- After that click on the"New Playlist" to create a new playlist.
- Give a name and click ok. (Your playlist will successfully be created)
- Then delete your newly created playlist.
- See error.
- App version: v1.4.0.1
- Device: Samsung A5
- Operating system: Android 6.0.1
Recording Of The Bug
GitHub Account
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)