Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. ActivityThread.handleLaunchActivity() has thrown a RuntimeException
    Android
    2784
    1383
    3

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxxx.hangman/com.xxxx.hangman.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)

Solution

Nwabunnia10 months ago

Create an empty public constructor in your code.

External results for this pattern (10)

  1. tomlearvia GitHub1 day ago
    Unable to start activity ComponentInfo{localvicinity.localvicinity.com.localvicinity/localvicinity.localvicinity.com.localvicinity.LocationListActivity}: java.lang.IllegalArgumentException: Can't have a viewTypeCount < 1
    Show stack trace
  2. iad24via GitHub2 days ago
    Unable to start activity ComponentInfo{com.xxx.yyy/com.myapp.modules.login.views.LoginActivity}: android.view.InflateException: Binary XML file line #0: Error inflating class android.widget.EditText
    Show stack trace
  3. afarbervia GitHub2 days ago
    Unable to start activity ComponentInfo{de.slova/de.slova.MainActivity}: java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1
    Show stack trace
  4. Psialevia GitHub2 days ago
    Unable to start activity ComponentInfo{com.example.psiale.cuntochupar/com.example.psiale.cuntochupar.Drinks}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.trim()' on a null object reference
    Show stack trace
  5. mikepenzvia GitHub2 days ago
    Unable to start activity ComponentInfo{de.slova/de.slova.MainActivity}: java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1
    Show stack trace
  6. gilshallemvia GitHub2 days ago
    Unable to start activity ComponentInfo{com.gilapps.smsshare2/com.theartofdev.edmodo.cropper.CropImageActivity}: java.lang.NullPointerException
    Show stack trace
  7. ankitbatra11via GitHub2 days ago
    Unable to start activity ComponentInfo{com.tools.screenshot/com.tools.screenshot.editing.ui.activities.CropActivity}: java.lang.NullPointerException: Attempt to read from field 'java.lang.String com.theartofdev.edmodo.cropper.CropImageOptions.activityTitle' on a null object reference
    Show stack trace
  8. ben-j69via GitHub2 days ago
    Unable to start activity ComponentInfo{com.wayzup.wayzupapp/com.theartofdev.edmodo.cropper.CropImageActivity}: android.view.InflateException: Binary XML file line #37: Binary XML file line #37: Error inflating class android.support.v7.widget.Toolbar
    Show stack trace
  9. kieuthiendev123via GitHub2 days ago
    Unable to start activity ComponentInfo{com.example.mrbuggy.demoappoderfood/com.example.mrbuggy.demoappoderfood.TrangChuActivity}: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
    Show stack trace
  10. TomGarden-2via GitHub2 days ago
    Unable to start activity ComponentInfo{com.farbox.androidbyeleven/com.farbox.androidbyeleven.View.Activity.MenuActivityNew}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.File android.content.Context.getExternalCacheDir()' on a null object reference
    Show stack trace