Project Information
Repository:
https://github.com/AugustToko/ACG-PlayerProject Name: ACG-Player
The issue submitted on GitHub: https://github.com/AugustToko/ACG-Player/issues/38
My github link: https://github.com/darewealth
Describe the bug
When I clicked on the shuffle icon in the trash can the app crashed
To Reproduce
Click on the playlist
Go to trash can
Then, click on the shuffle icon by the right at the top
See error
Expected behavior
I expect to get a popup message that there is not music to shuffle, or it shouldn't have a negative effect.
Screenshots
Smartphone
Device: [Gionee X1]
OS: [7.0]
Version 2.6.3.5(20190527)
Log
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: Process: top.geek_studio.chenlongcould.musicplayer.Common, PID: 31617
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: java.lang.RuntimeException: Unable to destroy activity {top.geek_studio.chenlongcould.musicplayer.Common/top.geek_studio.chenlongcould.musicplayer.activity.ListViewActivity}: java.lang.NullPointerException: Attempt to read from field 'int i.a.a.b.h.f.Uvc' on a null object reference
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4410)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4428)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at android.app.ActivityThread.-wrap5(Unknown Source:0)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1673)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6523)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:857)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to read from field 'int i.a.a.b.h.f.Uvc' on a null object reference
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at top.geek_studio.chenlongcould.musicplayer.activity.ListViewActivity.onDestroy(SourceFile:12)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at android.app.Activity.performDestroy(Activity.java:7232)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1249)
05-29 14:44:46.344 10086 31617 31617 E AndroidRuntime: at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4397)```