java.lang.RuntimeException: Unable to start activity ComponentInfo{dk.forsoegsperson.fp/dk.forsoegsperson.fp.MapsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.SupportMapFragment.getMapAsync(com.google.android.gms.maps.OnMapReadyCallback)' 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 user1378824
, 1 year ago
Unable to start activity ComponentInfo{dk.forsoegsperson.fp/dk.forsoegsperson.fp.MapsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.SupportMapFragment.getMapAsync(com.google.android.gms.maps.OnMapReadyCallback)' on a null object reference
via Stack Overflow by Kapparino
, 1 year ago
Unable to start activity ComponentInfo{MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.SupportMapFragment.getMapAsync(com.google.android.gms.maps.OnMapReadyCallback)' on a null object reference
via Stack Overflow by bhutto sahib
, 10 months ago
Unable to start activity ComponentInfo{com.example.bhutto.dmap/com.example.bhutto.dmap.MapsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.SupportMapFragment.getMapAsync(com.google.android.gms.maps.OnMapReadyCallback)' on a null object reference
via Stack Overflow by priya
, 8 months ago
Unable to start activity ComponentInfo{com.towncitycards/app.towncitycards.activities.Frnt_mapActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.SupportMapFragment.getMapAsync(com.google.android.gms.maps.OnMapReadyCallback)' on a null object reference
via Stack Overflow by Suhail Yaftaly
, 1 year ago
Unable to start activity ComponentInfo{com.example.suhail.onmyway/com.example.suhail.onmyway.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.MapFragment.getMapAsync(com.google.android.gms.maps.OnMapReadyCallback)' on a null object reference
via GitHub by thedevleon
, 1 year ago
Unable to start activity ComponentInfo{.../...app.IntroActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.FrameLayout.addView(android.view.View)' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{dk.forsoegsperson.fp/dk.forsoegsperson.fp.MapsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.SupportMapFragment.getMapAsync(com.google.android.gms.maps.OnMapReadyCallback)' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
9 times, 11 months ago
6 times, 4 months ago
184 times, 10 months ago
111 more bugmates

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