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 黃銘賢
, 1 year ago
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 Asesha George
, 11 months ago
Attempt to invoke interface method android.content.SharedPreferences$Editor android.content.SharedPreferences $Editor.putString(java.lang.String, java.lang.String) on a null object reference
via GitHub by spydermard
, 7 months ago
Attempt to invoke virtual method 'void android.support.v4.view.ViewPager.setAdapter(android.support.v4.view.PagerAdapter)' on a null object reference
via Android Enthusiasts by atulshgl
, 8 months ago
Attempt to invoke virtual method 'org.json.JSONArray org.json.JSONObject.getJSONArray(java.lang.String)' on a null object reference
via Stack Overflow by atulshgl
, 8 months ago
Attempt to invoke virtual method 'org.json.JSONArray org.json.JSONObject.getJSONArray(java.lang.String)' on a null object reference
via Stack Overflow by Relm
, 10 months ago
Attempt to invoke interface method 'android.arch.lifecycle.ViewModel android.arch.lifecycle.ViewModelProvider $Factory.create(java.lang.Class)' on a null object reference
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:2509)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2569)	at android.app.ActivityThread.access$900(ActivityThread.java:150)	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1399)	at android.os.Handler.dispatchMessage(Handler.java:102)	at android.os.Looper.loop(Looper.java:168)	at android.app.ActivityThread.main(ActivityThread.java:5885)	at java.lang.reflect.Method.invoke(Native Method)