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
Create ConcatenatingMediaSource with useLazyPreparation = true
Add some child media source and play
Delete 1 child media source, exoplayer will crash if this media source still not prepared
Link to test content
None
Version of ExoPlayer being used
2.9.0
Device(s) and version(s) of Android being used
Android 8.0
Stacktrace
com.google.android.exoplayer2.ExoPlaybackException: java.lang.NullPointerException
at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:359)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:164)
at android.os.HandlerThread.run(HandlerThread.java:65)
Caused by: java.lang.NullPointerException
at com.google.android.exoplayer2.util.Assertions.checkNotNull(Assertions.java:111)
at com.google.android.exoplayer2.source.CompositeMediaSource.releaseChildSource(CompositeMediaSource.java:121)
at com.google.android.exoplayer2.source.ConcatenatingMediaSource.removeMediaSourceInternal(ConcatenatingMediaSource.java:716)
at com.google.android.exoplayer2.source.ConcatenatingMediaSource.handleMessage(ConcatenatingMediaSource.java:577)
at com.google.android.exoplayer2.ExoPlayerImplInternal.deliverMessage(ExoPlayerImplInternal.java:871)
at com.google.android.exoplayer2.ExoPlayerImplInternal.sendMessageToTarget(ExoPlayerImplInternal.java:842)
at com.google.android.exoplayer2.ExoPlayerImplInternal.sendMessageInternal(ExoPlayerImplInternal.java:824)
at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:333)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:164)
at android.os.HandlerThread.run(HandlerThread.java:65)
The text was updated successfully, but these errors were encountered:
In ConcatenatingMediaSource, the source may be removed before it started
preparing (this may happen if lazyPreparation=true). In this case, we
shouldn't call releaseSource as the preparation didn't start.
Issue:#4986
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=218141658
In ConcatenatingMediaSource, the source may be removed before it started
preparing (this may happen if lazyPreparation=true). In this case, we
shouldn't call releaseSource as the preparation didn't start.
Issue:#4986
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=218141658
Issue description, Reproduction steps
ConcatenatingMediaSource
withuseLazyPreparation = true
Link to test content
None
Version of ExoPlayer being used
2.9.0
Device(s) and version(s) of Android being used
Android 8.0
Stacktrace
The text was updated successfully, but these errors were encountered: