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

java.lang.NullPointerException #3968

Closed
h3clikejava opened this issue Mar 9, 2018 · 1 comment
Closed

java.lang.NullPointerException #3968

h3clikejava opened this issue Mar 9, 2018 · 1 comment
Assignees

Comments

@h3clikejava
Copy link

It's auto report from crash-reporting-tool. The bug in recent versions. It's will let app crash.

Attempt to invoke interface method 'void com.google.android.exoplayer2.source.MediaSource$Listener.onSourceInfoRefreshed(com.google.android.exoplayer2.source.MediaSource, com.google.android.exoplayer2.Timeline, java.lang.Object)' on a null object reference

1 com.google.android.exoplayer2.source.ExtractorMediaSource.notifySourceInfoRefreshed(ExtractorMediaSource.java:380)

2 com.google.android.exoplayer2.source.ExtractorMediaSource.onSourceInfoRefreshed(ExtractorMediaSource.java:372)
3 com.google.android.exoplayer2.source.ExtractorMediaPeriod.maybeFinishPrepare(ExtractorMediaPeriod.java:555)
4 com.google.android.exoplayer2.source.ExtractorMediaPeriod.access$000(ExtractorMediaPeriod.java:51)
5 com.google.android.exoplayer2.source.ExtractorMediaPeriod$1.run(ExtractorMediaPeriod.java:153)
6 android.os.Handler.handleCallback(Handler.java:751)
7 android.os.Handler.dispatchMessage(Handler.java:95)
8 android.os.Looper.loop(Looper.java:159)
9 android.os.HandlerThread.run(HandlerThread.java:61)

@google google deleted a comment from pals-ric Mar 9, 2018
@ojw28
Copy link
Contributor

ojw28 commented Mar 9, 2018

You're probably experiencing this NPE because your app is probably re-using MediaSource instances. As per the developer guide, you should not do this, although we will be removing this restriction in future versions (probably from 2.8.0).

Alternatively, it's possible that you're app is hitting #3796, which was fixed in 2.7.0.

@ojw28 ojw28 closed this as completed Mar 9, 2018
@ojw28 ojw28 self-assigned this Mar 9, 2018
@ojw28 ojw28 added the duplicate label Mar 9, 2018
@google google locked and limited conversation to collaborators Aug 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants