java.lang.RuntimeException: Unable to start activity ComponentInfo{com.yolify.android/com.yolify.android.Activity_Splash}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.facebook.login.widget.LoginButton.setBackgroundResource(int)' on a null object reference


Solutions on the web

Solution icon of web
Unable to start activity ComponentInfo{com.yolify.android/com.yolify.android.Activity_Splash}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.facebook.login.widget.LoginButton.setBackgroundResource(int)' on a null object reference

Solution icon of github
Unable to start activity ComponentInfo{org.distantshoresmedia.translationkeyboard/org.distantshoresmedia.wifiDirect.WiFiDirectActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference

Solution icon of github
Unable to start activity ComponentInfo{com.thebluealliance.androidclient/com.thebluealliance.androidclient.activities.ViewTeamActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.ViewGroup.removeAllViews()' on a null object reference

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.mycompany.oweme/com.mycompany.oweme.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io.FileInputStream.close()' on a null object reference

Solution icon of web
via cyanogenmod.org by Unknown author, 1 year ago
Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.preference.Preference.onPrepareForRemoval()' on a null object reference

Solution icon of github
Unable to start activity ComponentInfo{com.habitrpg.android.habitica/com.habitrpg.android.habitica.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.design.widget.TabLayout.setVisibility(int)' on a null object reference

Solution icon of github
via GitHub by SlideAutoreport
, 1 year ago
Unable to start activity ComponentInfo{me.ccrama.redditslide/me.ccrama.redditslide.Activities.Profile}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by user2121
, 1 year ago
Unable to start activity ComponentInfo{com.example.com.myapplication/com.example.com.vpager_02.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ActionBar.setNavigationMode(int)' on a null object reference

Solution icon of stackoverflow
Unable to start activity ComponentInfo{ca.client.crmlogon/ca.client.crmlogon.Activities.WorkOrderActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference

Solution icon of github
Unable to start activity ComponentInfo{me.ccrama.redditslide/me.ccrama.redditslide.Activities.Profile}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference

Stack trace

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.yolify.android/com.yolify.android.Activity_Splash}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.facebook.login.widget.LoginButton.setBackgroundResource(int)' on a null object reference
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2802)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2867)
	at android.app.ActivityThread.access$900(ActivityThread.java:181)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1476)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:145)
	at android.app.ActivityThread.main(ActivityThread.java:6134)
	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:1399)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.facebook.login.widget.LoginButton.setBackgroundResource(int)' on a null object reference
	at com.yolify.android.Activity_Splash.onCreate(Activity_Splash.java:214)
	at android.app.Activity.performCreate(Activity.java:6374)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2746)
	... 10 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

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.