Pattern selector

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

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

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.yeni/com.yeni.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ExpandableListView.setAdapter(android.widget.ExpandableListAdapter)' on a null object reference
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)

Solution

Nwabunnia10 months ago

Create an empty public constructor in your code.

External results for this pattern (10)

  1. TomGarden-2via GitHub9 hours 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
  2. jiegege10via GitHub1 day ago
    Unable to start activity ComponentInfo{xxxxxx/xxxxxx.MainActivity}: android.os.BadParcelableException: Parcelable protocol requires the CREATOR object to be static on class wanqi.rental.com.view.RangeSeekBar$SavedState
    Show stack trace
  3. gogocomingvia GitHub1 day ago
    Unable to start activity ComponentInfo{com.example.nanke.joke/com.example.nanke.joke.MainActivity}: java.lang.ClassCastException: com.example.nanke.joke.MainActivity$2 cannot be cast to io.reactivex.functions.Consumer
    Show stack trace
  4. Danny-Jamesvia GitHub1 day ago
    Unable to start activity ComponentInfo{uk.co.ainscough.routeinfo/uk.co.ainscough.routeinfo.ActivityNavigation}: android.view.InflateException: Binary XML file line #9: Error inflating class com.mapbox.services.android.navigation.ui.v5.NavigationView
    Show stack trace
  5. adamvarhegyivia GitHub2 days ago
    Unable to start activity ComponentInfo{com.illion.dotodo.application.sender/com.thrivecom.ringcaptcha.OnboardActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setDisplayHomeAsUpEnabled(boolean)' on a null object reference
    Show stack trace
  6. MisterYvia GitHub2 days ago
    Unable to start activity ComponentInfo{com.money.manager.ex.debug/com.money.manager.ex.about.AboutActivity}: android.view.InflateException: Binary XML file line #26: Binary XML file line #26: Error inflating class com.astuetz.PagerSlidingTabStrip
    Show stack trace
  7. dayanithi06via GitHub2 days ago
    Unable to start activity ComponentInfo{com.dayanithi.supercamping/com.dayanithi.supercamping.activities.admin.AdminLoginClass}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
    Show stack trace
  8. voquanghoavia GitHub2 days ago
    Unable to start activity ComponentInfo{quanghoa.com.mailman/quanghoa.com.mailman.LoginActivity}: java.lang.IllegalStateException: Required view 'masked' with ID 2131230831 for method 'login' was not found. If this view is optional add '@Nullable' (fields) or '@Optional' (methods) annotation.
    Show stack trace
  9. drayan85via GitHub2 days ago
    Unable to start activity ComponentInfo{com.sample/com.sample.NewDiscussionActivity}: android.view.InflateException: Binary XML file line #187: Binary XML file line #187: Error inflating class fr.ganfra.materialspinner.MaterialSpinner
    Show stack trace
  10. Unable to start activity ComponentInfo{com.routeyou.startup/com.routeyou.ui.DownloadRouteActivity}: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.akexorcist.roundcornerprogressbar.common.BaseRoundCornerProgressBar$SavedState
    Show stack trace