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 bielas
, 11 months ago
Unable to start activity ComponentInfo{com.example.micha.locationtest/com.example.micha.locationtest.activities.MapsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLatitude()' on a null object reference
via GitHub by MisterY
, 2 years ago
Unable to start activity ComponentInfo{com.money.manager.ex/com.money.manager.ex.recurring.transactions.EditRecurringTransactionActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference
via Stack Overflow by 张林周
, 8 months ago
Unable to start activity ComponentInfo{。。.HomeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.indexOf(java.lang.Object)' on a null object reference
via xluat.com by Unknown author, 2 years ago
Unable to start activity ComponentInfo{ASD.Dashboard2}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
via teamtreehouse.com by Unknown author, 2 years ago
Unable to start activity ComponentInfo{com.falldetection.android.falldetection/com.falldetection.android.falldetection.Setting}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.parse.ParseUser.getUsername()' on a null object reference
via GitHub by Lineflyer
, 1 year ago
Unable to start activity ComponentInfo{cgeo.geocaching/cgeo.geocaching.settings.SettingsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.File java.io.File.getCanonicalFile()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLatitude()' on a null object reference	at com.example.micha.locationtest.activities.MapsActivity.onCreate(MapsActivity.java:76)