java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.projectcalculator/com.example.android.projectcalculator.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' 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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by Mattia Rubini
, 1 year ago
Unable to start activity ComponentInfo{com.example.android.projectcalculator/com.example.android.projectcalculator.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
via JIRA by Benjamin Kilpatrick, 1 year ago
Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
via Stack Overflow by Олег Медведев
, 10 months ago
Unable to start activity ComponentInfo{xxx.yyy.zzz/xxx.yyy.zzz.PrefActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
via Stack Overflow by ankur bhut
, 9 months ago
Unable to start activity ComponentInfo{baquee.androsoft.in/baquee.androsoft.in.ShowTitle}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
via JIRA by Benjamin Kilpatrick, 1 year ago
Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
via Stack Overflow by hitesh soni
, 6 months ago
Unable to start activity ComponentInfo{com.grab.deals.dealcart/com.grab.deals.dealcart.Full_view.Full_view}: android.view.InflateException: Binary XML file line #141: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.projectcalculator/com.example.android.projectcalculator.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2450)

Users with the same issue

12 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
777 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
210 times, 4 months ago

Write tip

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