java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setAlpha(float)' 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 dhruvalpatel18
, 9 months ago
Attempt to invoke virtual method 'void android.view.View.setAlpha(float)' on a null object reference
via GitHub by DannyBoy32
, 1 year ago
Attempt to invoke virtual method 'void android.view.View.setAlpha(float)' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setAlpha(float)' on a null object reference
at com.nineoldandroids.view.ViewHelper$Honeycomb.setAlpha(ViewHelper.java:185)
at com.daimajia.androidanimations.library.BaseViewAnimator.reset(BaseViewAnimator.java:60)
at com.daimajia.androidanimations.library.BaseViewAnimator.animate(BaseViewAnimator.java:49)
at com.daimajia.androidanimations.library.YoYo.play(YoYo.java:152)
at com.daimajia.androidanimations.library.YoYo.access$900(YoYo.java:36)
at com.daimajia.androidanimations.library.YoYo$AnimationComposer.playOn(YoYo.java:106)
at com.handm.dhruval.earthquakenews.ui.MainActivity$2.onDrawerOpened(MainActivity.java:109)
at android.support.v4.widget.DrawerLayout.dispatchOnDrawerOpened(DrawerLayout.java:875)
at android.support.v4.widget.DrawerLayout.updateDrawerState(DrawerLayout.java:820)
at android.support.v4.widget.DrawerLayout$ViewDragCallback.onViewDragStateChanged(DrawerLayout.java:2085)
at android.support.v4.widget.ViewDragHelper.setDragState(ViewDragHelper.java:881)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

Users with the same issue

8 times, 1 year ago

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