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

  1. ,
    via Stack Overflow by Luksprog

    The Fragment was destroyed, and getActivity() returned null. Don't destroy the Fragment.

Solutions on the web

via Stack Overflow by toothpick
, 1 year ago
Unable to start activity ComponentInfo{com.push.myapplication/com.push.myapplication.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference
via blogspot.com by Unknown author, 2 years ago
Unable to start activity ComponentInfo{http://ift.tt/1BLS1ZS}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference
via Stack Overflow by Unknown author, 2 years ago
Unable to instantiate activity ComponentInfo{com.mavenmaverick.ipconnect/com.mavenmaverick.ipconnect.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference
via Stack Overflow by We are Borg
, 2 years ago
Unable to start activity ComponentInfo{internetlegion.twentynotes/internetlegion.twentynotes.Activity.GroupCanvasActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object org.springframework.http.ResponseEntity.getBody()' on a null object reference
via google.com by Unknown author, 2 years ago
Unable to start activity ComponentInfo{com.foobar.bottomsheetdialogfragmenttest/com.foobar.bottomsheetdialogfragmenttest.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.ref.WeakReference.get()' on a null object reference
via Stack Overflow by We are Borg
, 2 years ago
Unable to start activity ComponentInfo{internetlegion.twentynotes/internetlegion.twentynotes.Activity.GroupCanvasActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object org.springframework.http.ResponseEntity.getBody()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference	at android.widget.ArrayAdapter.init(ArrayAdapter.java:310)	at android.widget.ArrayAdapter.(ArrayAdapter.java:153)	at com.push.myapplication.TabFragment2.addToList(TabFragment2.java:44)	at com.push.myapplication.MainActivity.onCreate(MainActivity.java:59)	at android.app.Activity.performCreate(Activity.java:5990)	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2332)