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
, 1 year 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 GitHub by kuanlaosiji
, 3 months ago
Unable to start activity ComponentInfo{io.github.javiewer/io.github.javiewer.activity.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'io.github.javiewer.adapter.item.DataSource io.github.javiewer.Configurations.getDataSource()' on a null object reference
via GitHub by xwartz
, 1 year 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 xiaomi.eu by Unknown author, 2 years 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
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 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2440) 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 java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)Caused by: 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) ... 9 more