The application crashes when i click on Play button

Words
306
Reading
2 min
Listen
Play
7y

Related Information

Repository:https://github.com/AnonymusRaccoon/Opus

Expected behavior:

I expected that the application should not be crash when i click on Play button.

Actual behavior:

After configure the application when i click on Play button option,the application is you can see in bug vieo proprealy.

How to reproduce:

1.Download the app.
2.Open the application.
3.Then click on Shuffle All &
4.Going to device setting and app Clear Date.
5.Then open app & open play music.
3.click on back button.
4.Then try to again Click play button.
6.Note the Bug.

information

  • App version:v8.1.0
  • os:Android 6.0.1
  • Device:samsung J5

Recording of the bug

My GitHub Account: https://github.com/44asad

Logcat:

06-28 06:48:13.814 16912 16912 E AndroidRuntime: FATAL EXCEPTION: main
06-28 06:48:13.814 16912 16912 E AndroidRuntime: Process: com.sdg.opus, PID: 16912
06-28 06:48:13.814 16912 16912 E AndroidRuntime: android.runtime.JavaProxyThrowable: System.NullReferenceException: Object reference not set to an instance of an object
06-28 06:48:13.814 16912 16912 E AndroidRuntime:   at Opus.Api.Services.MusicPlayer.SwitchQueue (System.Int32 position, System.Boolean showPlayer, System.Boolean StartFromOldPosition) [0x00080] in <7c2e54ee30b541288e4064e73ad094af>:0 
06-28 06:48:13.814 16912 16912 E AndroidRuntime:   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__6_0 (System.Object state) [0x00000] in :0 
06-28 06:48:13.814 16912 16912 E AndroidRuntime:   at Android.App.SyncContext+<>c__DisplayClass2_0.b__0 () [0x00000] in <862021070e6d4dfba567a8bb40c0f407>:0 
06-28 06:48:13.814 16912 16912 E AndroidRuntime:   at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <862021070e6d4dfba567a8bb40c0f407>:0 
06-28 06:48:13.814 16912 16912 E AndroidRuntime:   at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in <862021070e6d4dfba567a8bb40c0f407>:0 
06-28 06:48:13.814 16912 16912 E AndroidRuntime:   at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.19(intptr,intptr)
06-28 06:48:13.814 16912 16912 E AndroidRuntime:   at mono.java.lang.RunnableImplementor.n_run(Native Method)
06-28 06:48:13.814 16912 16912 E AndroidRuntime:   at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:30)
06-28 06:48:13.814 16912 16912 E AndroidRuntime:   at android.os.Handler.handleCallback(Handler.java:739)
06-28 06:48:13.814 16912 16912 E AndroidRuntime:   at android.os.Handler.dispatchMessage(Handler.java:95)
06-28 06:48:13.814 16912 16912 E AndroidRuntime:   at android.os.Looper.loop(Looper.java:158)
06-28 06:48:13.814 16912 16912 E AndroidRuntime:   at android.app.ActivityThread.main(ActivityThread.java:7231)
06-28 06:48:13.814 16912 16912 E AndroidRuntime:   at java.lang.reflect.Method.invoke(Native Method)
06-28 06:48:13.814 16912 16912 E AndroidRuntime:   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
06-28 06:48:13.814 16912 16912 E AndroidRuntime:   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
The application crashes when i click on Play button | Ecency