java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.akujobijoshua.StudentBuddy/com.example.akujobijoshua.StudentBuddy.todolis.MainAct}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.support.design.widget.TabLayout$Tab android.support.design.widget.TabLayout.newTab()' 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 Stack Overflow by King Josh
, 6 months ago
Unable to start activity ComponentInfo{com.example.akujobijoshua.StudentBuddy/com.example.akujobijoshua.StudentBuddy.todolis.MainAct}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.support.design.widget.TabLayout$Tab android.support.design.widget.TabLayout.newTab()' on a null object reference
via Stack Overflow by Aby Golzar
, 1 month ago
Unable to start activity ComponentInfo{com.example.eyepatch.shutter/com.example.eyepatch.shutter.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.support.design.widget.TabLayout$Tab android.support.design.widget.TabLayout$Tab.setIcon(android.graphics.drawable.Drawable)' on a null object reference
via GitHub by xwartz
, 7 months ago
Unable to start activity ComponentInfo{org.consenlabs.token/org.consenlabs.token.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
via GitHub by RyanElliott94
, 6 months ago
Unable to start activity ComponentInfo{com.skintmedia.voice/com.braunster.chatsdk.activities.ChatSDKLoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.braunster.chatsdk.network.AbstractNetworkAdapter.facebookEnabled()' on a null object reference
via xiaomi.eu 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
via GitHub by blFeedbackBot
, 1 year ago
Unable to start activity ComponentInfo{us.shandian.blacklight/com.karumi.dexter.DexterActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.akujobijoshua.StudentBuddy/com.example.akujobijoshua.StudentBuddy.todolis.MainAct}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.support.design.widget.TabLayout$Tab android.support.design.widget.TabLayout.newTab()' on a null object reference
at com.example.akujobijoshua.StudentBuddy.todolis.MainAct.setUI(MainAct.java:132)
at com.example.akujobijoshua.StudentBuddy.todolis.MainAct.onCreate(MainAct.java:76)
at android.app.Activity.performCreate(Activity.java:6279)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2393)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2500)
at android.app.ActivityThread.access$900(ActivityThread.java:163)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1362)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5585)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)

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.