java.lang.NullPointerException: Attempt to get length of null array

Stack Overflow | TheModularMind | 5 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

    Android - ExoPlayer2 subtitles

    Stack Overflow | 5 months ago | TheModularMind
    java.lang.NullPointerException: Attempt to get length of null array
  2. 0

    NullPointerException in TsExtractor

    GitHub | 3 months ago | clhols
    java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.exoplayer2.extractor.ts.ElementaryStreamReader.init(com.google.android.exoplayer2.extractor.ExtractorOutput, com.google.android.exoplayer2.extractor.ts.ElementaryStreamReader$TrackIdGenerator)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to get length of null array

      at com.google.android.exoplayer2.source.SingleSampleMediaPeriod$SourceLoadable.load()
    2. com.google.android
      Loader$LoadTask.run
      1. com.google.android.exoplayer2.source.SingleSampleMediaPeriod$SourceLoadable.load(SingleSampleMediaPeriod.java:272)
      2. com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:295)
      2 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:237)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
      5. java.lang.Thread.run(Thread.java:761)
      5 frames