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 #4295

Closed
h3clikejava opened this issue May 24, 2018 · 1 comment
Closed

java.lang.NullPointerException #4295

h3clikejava opened this issue May 24, 2018 · 1 comment

Comments

@h3clikejava
Copy link

h3clikejava commented May 24, 2018

at com.google.android.exoplayer2.source.ExtractorMediaSource.notifySourceInfoRefreshed (ExtractorMediaSource.java:381)
at com.google.android.exoplayer2.source.ExtractorMediaSource.onSourceInfoRefreshed (ExtractorMediaSource.java:372)
at com.google.android.exoplayer2.source.ExtractorMediaPeriod.maybeFinishPrepare (ExtractorMediaPeriod.java:625)
at com.google.android.exoplayer2.source.ExtractorMediaPeriod.access$000 (ExtractorMediaPeriod.java:53)
at com.google.android.exoplayer2.source.ExtractorMediaPeriod$1.run (ExtractorMediaPeriod.java:157)
at android.os.Handler.handleCallback (Handler.java:873)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:164)
at android.os.HandlerThread.run (HandlerThread.java:65)

bug report from Google Play Console, It's a old bug, maybe you need try catch it, don't let it crash!
BTW, I used version is 2.7.3

@botaydotcom
Copy link
Contributor

I think this is probably a duplicate of #3968. In that issue (it seems it's from you as well), @ojw28 suggested that the cause for this was probably because your app was re-using MediaSource instances. This is not supported until 2.8.0. Therefore, one possible solution for you in this case is to try to upgrade your app to use ExoPlayer 2.8.0 and above.

@google google locked and limited conversation to collaborators Sep 27, 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