java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String java.lang.CharSequence.toString()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)

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 Sherlock-and-MIB
, 1 year ago
Attempt to invoke interface method 'java.lang.String java.lang.CharSequence.toString()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325) at android.app.ActivityThread.handleLaunchActivity
via Stack Overflow by Subho
, 2 years ago
Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
via Stack Overflow by M.N
, 2 years ago
Attempt to invoke direct method 'boolean course.labs.graphicslab.BubbleActivity$BubbleView.intersects(float, float)' on a null object reference at course.labs.graphicslab.BubbleActivity$BubbleView.access$0(BubbleActivity.java:368) at
via Stack Overflow by shyamyy
, 1 year ago
Attempt to read from field 'double com.google.android.gms.maps.model.LatLng.longitude' on a null object reference notebookdata.mycalltaxi.notebook.CarSelectActivity$5.run(CarSelectActivity.java:414) android.os.Handler.handleCallback(Handler.java:739)
via stackoverflow.com by Unknown author, 1 year ago
Attempt to invoke virtual method 'void android.app.ActionBar.setDisplayHomeAsUpEnabled(boolean)' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416) at
via bighow.org by Unknown author, 1 year ago
Attempt to invoke virtual method 'java.lang.CharSequence android.support.v7.widget.Toolbar.getTitle()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298) at
java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String java.lang.CharSequence.toString()' on a null object reference
at android.content.res.TypedArray.getString(TypedArray.java:176)
at android.view.View.(View.java:3992)
at android.view.ViewGroup.(ViewGroup.java:497)
at android.view.ViewGroup.(ViewGroup.java:493)
at android.view.ViewGroup.(ViewGroup.java:489)
at android.view.ViewGroup.(ViewGroup.java:485)
at android.widget.FrameLayout.(FrameLayout.java:103)
at com.android.internal.policy.impl.PhoneWindow$DecorView.(PhoneWindow.java:2226)
at com.android.internal.policy.impl.PhoneWindow.generateDecor(PhoneWindow.java:3316)
at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3669)
at android.app.Activity.setContentView(Activity.java:2145)
at com.example.ipt02.spotchecktrial1.MainActivity.onCreate(MainActivity.java:22)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)

Users with the same issue

You are the first who have seen this exception.

Write tip

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