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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by HelloDearWorld
, 1 year ago
Attempt to read from null array
java.lang.NullPointerException: Attempt to read from null array
at com.inqbarna.tablefixheaders.TableFixHeaders.computeHorizontalScrollOffset(TableFixHeaders.java:354)
at android.view.View.onDrawScrollBars(View.java:13204)
at android.view.View.draw(View.java:15609)
at android.view.View.updateDisplayListIfDirty(View.java:14483)
at android.view.View.getDisplayList(View.java:14512)
at android.view.View.draw(View.java:15303)
at android.view.ViewGroup.drawChild(ViewGroup.java:3536)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3329)
at android.view.View.updateDisplayListIfDirty(View.java:14475)
at android.view.View.getDisplayList(View.java:14512)
at android.view.View.draw(View.java:15303)
at android.view.ViewGroup.drawChild(ViewGroup.java:3536)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3329)
at android.view.View.updateDisplayListIfDirty(View.java:14475)
at android.view.View.getDisplayList(View.java:14512)
at android.view.View.draw(View.java:15303)
at android.view.ViewGroup.drawChild(ViewGroup.java:3536)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3329)
at android.view.View.updateDisplayListIfDirty(View.java:14475)
at android.view.View.getDisplayList(View.java:14512)
at android.view.View.draw(View.java:15303)
at android.view.ViewGroup.drawChild(ViewGroup.java:3536)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3329)
at android.view.View.updateDisplayListIfDirty(View.java:14475)
at android.view.View.getDisplayList(View.java:14512)
at android.view.View.draw(View.java:15303)
at android.view.ViewGroup.drawChild(ViewGroup.java:3536)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3329)
at android.view.View.draw(View.java:15606)
at android.widget.FrameLayout.draw(FrameLayout.java:658)
at android.view.View.updateDisplayListIfDirty(View.java:14483)
at android.view.View.getDisplayList(View.java:14512)
at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:279)
at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:285)
at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:335)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:3048)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2857)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2468)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1329)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6780)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:818)
at android.view.Choreographer.doCallbacks(Choreographer.java:621)
at android.view.Choreographer.doFrame(Choreographer.java:584)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:804)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5691)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.