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

GitHub | eneim | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    NPE in ExtractorMediaSource, reproduced by quickly prepare and release the MediaSource

    GitHub | 5 months ago | eneim
    java.lang.NullPointerException: Attempt to invoke interface method 'void com.google.android.exoplayer2.source.MediaSource$Listener.onSourceInfoRefreshed(com.google.android.exoplayer2.Timeline, java.lang.Object)' on a null object reference
  2. 0

    NullPointerException

    GitHub | 4 months ago | find-happiness
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

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

      at com.google.android.exoplayer2.source.ExtractorMediaSource.onSourceInfoRefreshed()
    2. com.google.android
      ExtractorMediaPeriod$1.run
      1. com.google.android.exoplayer2.source.ExtractorMediaSource.onSourceInfoRefreshed(ExtractorMediaSource.java:179)
      2. com.google.android.exoplayer2.source.ExtractorMediaPeriod.maybeFinishPrepare(ExtractorMediaPeriod.java:408)
      3. com.google.android.exoplayer2.source.ExtractorMediaPeriod.access$000(ExtractorMediaPeriod.java:49)
      4. com.google.android.exoplayer2.source.ExtractorMediaPeriod$1.run(ExtractorMediaPeriod.java:120)
      4 frames
    3. Android Platform
      HandlerThread.run
      1. android.os.Handler.handleCallback(Handler.java:751)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:154)
      4. android.os.HandlerThread.run(HandlerThread.java:61)
      4 frames
    4. com.google.android
      PriorityHandlerThread.run
      1. com.google.android.exoplayer2.util.PriorityHandlerThread.run(PriorityHandlerThread.java:40)
      1 frame