Skip to content

[Bug] Crash - Attempt to read from field 'org.jsoup.nodes.Printer org.schabi.newpipe.player.helper.MediaSessionManager.mediaSession' on a null object #2610

Description

@dvg48

Checklist

  • I make sure that the issue is NOT a duplicate of pinned issues
  • I make sure I am using the LATEST version - check here
  • I understand that issues with limited impact, such as those occurring on specific devices or under specific network conditions, will not be fixed
  • I have attached the error report in the issue

Describe the bug

I'm honestly not sure what happened as I was just using it as background noise and when I looked back over at my phone the app had crashed.

Version

5.2.1-beta5

Frequency

Only once (single occurrence)

Device

Pixel 9 Pro XL, Android 17 (GrapheneOS)

Steps to reproduce the bug

No response

Additional context

Exception

  • User Action: ui error
  • Request: ACRA report
  • Content Country: US
  • Content Language: en-US
  • App Language: en_US
  • Service: none
  • Version: 5.2.1-beta5
  • OS: Linux Android 17 - 37
Crash log

java.lang.NullPointerException: Attempt to read from field 'org.jsoup.nodes.Printer org.schabi.newpipe.player.helper.MediaSessionManager.mediaSession' on a null object reference in method 'androidx.core.app.NotificationCompat$Builder org.schabi.newpipe.player.NotificationUtil.createNotification(org.schabi.newpipe.player.Player, android.app.Service)'
	at org.schabi.newpipe.player.NotificationUtil.createNotification(r8-map-id-850dce242d597840c377a349ca6ef949baf5e0cb660a14c932aeefe089ce9623:124)
	at org.schabi.newpipe.player.NotificationUtil.createNotificationIfNeededAndUpdate(r8-map-id-850dce242d597840c377a349ca6ef949baf5e0cb660a14c932aeefe089ce9623:12)
	at org.schabi.newpipe.player.Player$5.onBitmapLoaded(r8-map-id-850dce242d597840c377a349ca6ef949baf5e0cb660a14c932aeefe089ce9623:12)
	at com.squareup.picasso.GetAction.complete(r8-map-id-850dce242d597840c377a349ca6ef949baf5e0cb660a14c932aeefe089ce9623:16)
	at com.squareup.picasso.Picasso.deliverAction(r8-map-id-850dce242d597840c377a349ca6ef949baf5e0cb660a14c932aeefe089ce9623:23)
	at com.squareup.picasso.Utils$1.handleMessage(r8-map-id-850dce242d597840c377a349ca6ef949baf5e0cb660a14c932aeefe089ce9623:135)
	at android.os.Handler.dispatchMessageImpl(Handler.java:142)
	at android.os.Handler.dispatchMessage(Handler.java:125)
	at android.os.Looper.loopOnce(Looper.java:296)
	at android.os.Looper.loop(Looper.java:397)
	at android.app.ActivityThread.main(ActivityThread.java:9568)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:575)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:847)


Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions