You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are getting an NPE on an HLS video with 608 captions.
The stack trace is:
java.lang.NullPointerException: Attempt to invoke virtual method 'int com.google.android.exoplayer2.text.SubtitleOutputBuffer.getEventTimeCount()' on a null object reference
at com.google.android.exoplayer2.text.TextRenderer.getNextEventTime(TextRenderer.java:252)
at com.google.android.exoplayer2.text.TextRenderer.render(TextRenderer.java:165)
at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:431)
at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:265)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)
at com.google.android.exoplayer2.util.PriorityHandlerThread.run(PriorityHandlerThread.java:40)
The method getNextEventTime() should have a null check on subtitle before attempting to call getEventTimeCount(). I am not sure what it should return if subtitle is null. Perhaps C.INDEX_UNSET?
The text was updated successfully, but these errors were encountered:
We are getting an NPE on an HLS video with 608 captions.
The stack trace is:
The method
getNextEventTime()
should have a null check on subtitle before attempting to callgetEventTimeCount()
. I am not sure what it should return if subtitle is null. PerhapsC.INDEX_UNSET
?The text was updated successfully, but these errors were encountered: