FATAL EXCEPTION: main
Process: com.jamal2367.urlradio, PID: 32317
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getLastPathSegment()' on a null object reference
at android.app.DownloadManager.enqueue(DownloadManager.java:1120)
at m5.e.H(SourceFile:259)
at com.jamal2367.urlradio.PlayerFragment.F(SourceFile:384)
at androidx.fragment.app.z0.n(SourceFile:153)
at androidx.fragment.app.z0.k(SourceFile:59)
at androidx.fragment.app.m1.b(SourceFile:64)
at android.support.v4.media.c.b(SourceFile:31)
at androidx.fragment.app.m.g(SourceFile:1895)
at androidx.fragment.app.m.h(SourceFile:161)
at androidx.fragment.app.u0.z(SourceFile:1628)
at androidx.fragment.app.u0.U(SourceFile:92)
at androidx.fragment.app.u0.x(SourceFile:74)
at androidx.fragment.app.n.run(SourceFile:22)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:233)
at android.os.Looper.loop(Looper.java:334)
at android.app.ActivityThread.main(ActivityThread.java:8348)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:582)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1065)
FATAL EXCEPTION: main Process: com.jamal2367.urlradio, PID: 32317 java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getLastPathSegment()' on a null object reference at android.app.DownloadManager.enqueue(DownloadManager.java:1120) at m5.e.H(SourceFile:259) at com.jamal2367.urlradio.PlayerFragment.F(SourceFile:384) at androidx.fragment.app.z0.n(SourceFile:153) at androidx.fragment.app.z0.k(SourceFile:59) at androidx.fragment.app.m1.b(SourceFile:64) at android.support.v4.media.c.b(SourceFile:31) at androidx.fragment.app.m.g(SourceFile:1895) at androidx.fragment.app.m.h(SourceFile:161) at androidx.fragment.app.u0.z(SourceFile:1628) at androidx.fragment.app.u0.U(SourceFile:92) at androidx.fragment.app.u0.x(SourceFile:74) at androidx.fragment.app.n.run(SourceFile:22) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:233) at android.os.Looper.loop(Looper.java:334) at android.app.ActivityThread.main(ActivityThread.java:8348) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:582) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1065)