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

NullPointerException in EventLogger.printMetadata #5149

Closed
stari4ek opened this issue Nov 26, 2018 · 0 comments
Closed

NullPointerException in EventLogger.printMetadata #5149

stari4ek opened this issue Nov 26, 2018 · 0 comments
Assignees
Labels

Comments

@stari4ek
Copy link

stari4ek commented Nov 26, 2018

I'm seeing rare NullPointerException inside metadata analytics processing:

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.google.android.exoplayer2.c.a.a()' on a null object reference
       at com.google.android.exoplayer2.util.EventLogger.printMetadata(EventLogger.java:469)
       at com.google.android.exoplayer2.util.EventLogger.onMetadata(EventLogger.java:266)
       at com.google.android.exoplayer2.analytics.AnalyticsCollector.onMetadata(AnalyticsCollector.java:176)
       at com.google.android.exoplayer2.SimpleExoPlayer$ComponentListener.onMetadata(SimpleExoPlayer.java:1364)
       at com.google.android.exoplayer2.metadata.MetadataRenderer.invokeRendererInternal(MetadataRenderer.java:191)
       at com.google.android.exoplayer2.metadata.MetadataRenderer.handleMessage(MetadataRenderer.java:182)
       at android.os.Handler.dispatchMessage(Handler.java:101)
       at android.os.Looper.loop(Looper.java:164)
       at android.app.ActivityThread.main(ActivityThread.java:6541)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

From mapping:

com.google.android.exoplayer2.metadata.Metadata -> com.google.android.exoplayer2.c.a:
 ...
    66:66:int length() -> a

So it crashes in one branch of callback propagation which does not have null-check guard

  • using b771091
  • no stream sample. I'm seeing it in crash reporting system
@andrewlewis andrewlewis self-assigned this Nov 27, 2018
andrewlewis added a commit that referenced this issue Nov 28, 2018
ojw28 pushed a commit that referenced this issue Nov 28, 2018
@google google locked and limited conversation to collaborators May 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants