Skip to content

[Bug] Crash when adding videos to playlist #2567

Description

@aladar42

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

App crashes every time I click on "add to playlist" and then select a playlist. This happens on videos from any feed (individual channels and what's new). Reproducible every time, tested only with Youtube videos.

Copied report:

Exception

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

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
	at org.schabi.newpipe.local.dialog.PlaylistAppendDialog$1.selected(r8-map-id-c0516b28995b7ee05916d6916abd6008f164779f86cdacbb6d441fe25326605f:78)
	at org.schabi.newpipe.error.ErrorUtil$Companion$$ExternalSyntheticLambda0.onClick(r8-map-id-c0516b28995b7ee05916d6916abd6008f164779f86cdacbb6d441fe25326605f:466)
	at android.view.View.performClick(View.java:8812)
	at android.view.View.performClickInternal(View.java:8789)
	at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
	at android.view.View$PerformClick.run(View.java:33811)
	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.2.0

Frequency

Always (100% of the time)

Device

Samsung A56

Steps to reproduce the bug

Click on "Add to playlist"
Select playlist
App crashes

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions