java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.ViewGroup.getScrollX()' on a null object reference

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 roundhill
, 1 year ago
Attempt to invoke virtual method 'int android.view.ViewGroup.getScrollX()' on a null object reference
via Stack Overflow by Veeresh Charantimath
, 1 year ago
Attempt to invoke virtual method 'int android.view.ViewGroup.getScrollX()' on a null object reference
via GitHub by GoogleCodeExporter
, 3 months ago
Attempt to invoke virtual method 'void android.view.View.getLocationOnScreen(int[])' on a null object reference
via Stack Overflow by Unknown author, 2 years ago
Attempt to invoke virtual method 'void android.graphics.Matrix.setValues(float[])' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.ViewGroup.getScrollX()' on a null object reference
at android.app.ActivityTransitionCoordinator.setSharedElementState(ActivityTransitionCoordinator.java:435)
at android.app.ActivityTransitionCoordinator.setSharedElementState(ActivityTransitionCoordinator.java:473)
at android.app.EnterTransitionCoordinator.startSharedElementTransition(EnterTransitionCoordinator.java:332)
at android.app.EnterTransitionCoordinator.access$200(EnterTransitionCoordinator.java:42)
at android.app.EnterTransitionCoordinator$5$1.run(EnterTransitionCoordinator.java:389)
at android.app.ActivityTransitionCoordinator.startTransition(ActivityTransitionCoordinator.java:698)
at android.app.EnterTransitionCoordinator$5.onPreDraw(EnterTransitionCoordinator.java:386)
at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:847)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1990)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1088)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5825)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:769)
at android.view.Choreographer.doCallbacks(Choreographer.java:582)
at android.view.Choreographer.doFrame(Choreographer.java:552)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:755)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5237)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
85 more bugmates

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