Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash while reordering media with cast connected #2002

Open
1 task
lstonussi opened this issue Dec 26, 2024 · 1 comment
Open
1 task

Crash while reordering media with cast connected #2002

lstonussi opened this issue Dec 26, 2024 · 1 comment
Assignees

Comments

@lstonussi
Copy link

lstonussi commented Dec 26, 2024

Version

Media3 1.4.1

More version details

No response

Devices that reproduce the issue

Galaxy S10

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Not tested

Reproduction steps

Enqueue some medias in exoplayer
play one of them
starts cast
Reorder medias with cast connected

Expected result

list of medias reordened

Actual result

Crash

E/AndroidRuntime( 9179): java.lang.NullPointerException
E/AndroidRuntime( 9179): 	at androidx.media3.common.util.Assertions.checkNotNull(Assertions.java:155)
E/AndroidRuntime( 9179): 	at androidx.media3.cast.DefaultMediaItemConverter.toMediaItem(DefaultMediaItemConverter.java:53)

Media

Not applicable

Bug Report

  • You will email the zip file produced by adb bugreport to [email protected] after filing this issue.
@lstonussi
Copy link
Author

lstonussi commented Dec 26, 2024

In some point after remoteMediaClient.queueMoveItemToNewIndex(3,1), mediaInfo comes as null in this check:
Assertions.checkNotNull(mediaInfo);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants