Skip to content

[Bug] Attempt to invoke virtual method 'boolean org.schabi.newpipe.player.Player.videoPlayerSelected()' on a null object reference #2458

Description

@GeneralWarPig

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

Getting this constantly.

Exception

  • User Action: ui error
  • Request: ACRA report
  • Content Country: US
  • Content Language: en-US
  • App Language: en_US
  • Service: none
  • Version: 5.1.1
  • OS: Linux samsung/pa3quew/pa3q:16/BP4A.251205.006/S938U1UEU9CZDP_OYM9CZDP:user/release-keys 16 - 36
Crash log

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean org.schabi.newpipe.player.Player.videoPlayerSelected()' on a null object reference
	at org.schabi.newpipe.fragments.detail.VideoDetailFragment.onServiceConnected(VideoDetailFragment.java:262)
	at org.schabi.newpipe.player.helper.PlayerHolder$PlayerServiceConnection.onServiceConnected(PlayerHolder.java:169)
	at android.content.ServiceConnection.onServiceConnected(ServiceConnection.java:75)
	at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:2517)
	at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:2557)
	at android.os.Handler.handleCallback(Handler.java:1070)
	at android.os.Handler.dispatchMessage(Handler.java:125)
	at android.os.Looper.dispatchMessage(Looper.java:358)
	at android.os.Looper.loopOnce(Looper.java:288)
	at android.os.Looper.loop(Looper.java:392)
	at android.app.ActivityThread.main(ActivityThread.java:10346)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:638)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:972)


Version

5.1.1

Frequency

Often (80-90% of the time)

Device

Galaxy S25 ultra

Steps to reproduce the bug

Watch a video
then go to another video

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions