java.lang.NullPointerException: Attempt to read from null array

GitHub | mvasilchuk | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Crash after trying to play FLV on r2.0.1

    GitHub | 7 months ago | mvasilchuk
    java.lang.NullPointerException: Attempt to read from null array
  2. 0

    Crash when fast forward video

    GitHub | 9 months ago | sharkhuang
    java.lang.NullPointerException: Attempt to get length of null array

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to read from null array

      at com.google.android.exoplayer2.source.ExtractorMediaPeriod.configureRetry()
    2. com.google.android
      Loader$LoadTask.handleMessage
      1. com.google.android.exoplayer2.source.ExtractorMediaPeriod.configureRetry(ExtractorMediaPeriod.java:460)
      2. com.google.android.exoplayer2.source.ExtractorMediaPeriod.onLoadError(ExtractorMediaPeriod.java:352)
      3. com.google.android.exoplayer2.source.ExtractorMediaPeriod.onLoadError(ExtractorMediaPeriod.java:49)
      4. com.google.android.exoplayer2.upstream.Loader$LoadTask.handleMessage(Loader.java:359)
      4 frames
    3. Android Platform
      HandlerThread.run
      1. android.os.Handler.dispatchMessage(Handler.java:102)
      2. android.os.Looper.loop(Looper.java:148)
      3. android.os.HandlerThread.run(HandlerThread.java:61)
      3 frames
    4. com.google.android
      PriorityHandlerThread.run
      1. com.google.android.exoplayer2.util.PriorityHandlerThread.run(PriorityHandlerThread.java:40)
      1 frame