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

GitHub | HelloDearWorld | 6 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

    java.lang.NullPointerException

    GitHub | 6 months ago | HelloDearWorld
    java.lang.NullPointerException: Attempt to read from null array

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to read from null array

      at com.inqbarna.tablefixheaders.TableFixHeaders.computeHorizontalScrollOffset()
    2. com.inqbarna.tablefixheaders
      TableFixHeaders.computeHorizontalScrollOffset
      1. com.inqbarna.tablefixheaders.TableFixHeaders.computeHorizontalScrollOffset(TableFixHeaders.java:354)
      1 frame
    3. Android Platform
      ViewGroup.dispatchDraw
      1. android.view.View.onDrawScrollBars(View.java:13204)
      2. android.view.View.draw(View.java:15609)
      3. android.view.View.updateDisplayListIfDirty(View.java:14483)
      4. android.view.View.getDisplayList(View.java:14512)
      5. android.view.View.draw(View.java:15303)
      6. android.view.ViewGroup.drawChild(ViewGroup.java:3536)
      7. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3329)
      8. android.view.View.updateDisplayListIfDirty(View.java:14475)
      9. android.view.View.getDisplayList(View.java:14512)
      10. android.view.View.draw(View.java:15303)
      11. android.view.ViewGroup.drawChild(ViewGroup.java:3536)
      12. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3329)
      13. android.view.View.updateDisplayListIfDirty(View.java:14475)
      14. android.view.View.getDisplayList(View.java:14512)
      15. android.view.View.draw(View.java:15303)
      16. android.view.ViewGroup.drawChild(ViewGroup.java:3536)
      17. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3329)
      18. android.view.View.updateDisplayListIfDirty(View.java:14475)
      19. android.view.View.getDisplayList(View.java:14512)
      20. android.view.View.draw(View.java:15303)
      21. android.view.ViewGroup.drawChild(ViewGroup.java:3536)
      22. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3329)
      23. android.view.View.updateDisplayListIfDirty(View.java:14475)
      24. android.view.View.getDisplayList(View.java:14512)
      25. android.view.View.draw(View.java:15303)
      26. android.view.ViewGroup.drawChild(ViewGroup.java:3536)
      27. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3329)
      27 frames
    4. Android
      PhoneWindow$DecorView.dispatchDraw
      1. com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchDraw(PhoneWindow.java:2816)
      1 frame
    5. Android Platform
      FrameLayout.draw
      1. android.view.View.draw(View.java:15606)
      2. android.widget.FrameLayout.draw(FrameLayout.java:658)
      2 frames
    6. Android
      PhoneWindow$DecorView.draw
      1. com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2795)
      1 frame
    7. Android Platform
      ActivityThread.main
      1. android.view.View.updateDisplayListIfDirty(View.java:14483)
      2. android.view.View.getDisplayList(View.java:14512)
      3. android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:279)
      4. android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:285)
      5. android.view.ThreadedRenderer.draw(ThreadedRenderer.java:335)
      6. android.view.ViewRootImpl.draw(ViewRootImpl.java:3048)
      7. android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2857)
      8. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2468)
      9. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1329)
      10. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6780)
      11. android.view.Choreographer$CallbackRecord.run(Choreographer.java:818)
      12. android.view.Choreographer.doCallbacks(Choreographer.java:621)
      13. android.view.Choreographer.doFrame(Choreographer.java:584)
      14. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:804)
      15. android.os.Handler.handleCallback(Handler.java:815)
      16. android.os.Handler.dispatchMessage(Handler.java:104)
      17. android.os.Looper.loop(Looper.java:194)
      18. android.app.ActivityThread.main(ActivityThread.java:5691)
      18 frames
    8. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    9. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
      2 frames