java.lang.RuntimeException: Unable to start activity ComponentInfo{ui.activity.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.EditText.setText(java.lang.CharSequence)' on a null object reference

Stack Overflow | Esteban | 3 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd . Or join the community to write better ones.
  1. 0

    instantiateItem not called after rotation

    Stack Overflow | 3 months ago | Esteban
    java.lang.RuntimeException: Unable to start activity ComponentInfo{ui.activity.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.EditText.setText(java.lang.CharSequence)' on a null object reference
  2. 0
    samebug tip
    The resource was accessed after it was dismissed.
  3. 0

    Crash on Login

    GitHub | 11 months ago | davidtorcivia
    java.lang.RuntimeException: Unable to start activity ComponentInfo{rocks.paperwork.android/rocks.paperwork.android.activities.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NullPointerException on ExpandableListView

    Stack Overflow | 3 months ago | francesco bocci
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.bfco.bocci.androhouse/com.bfco.bocci.androhouse.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ExpandableListView.setAdapter(android.widget.ExpandableListAdapter)' on a null object reference
  6. 0

    attempt to invoke virtual method on a null Object (NullPointerException)

    Stack Overflow | 3 weeks ago | Torben
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.popularmoviesapp/com.example.android.popularmoviesapp.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.GridView.setSelection(int)' on a null object reference

  1. andreeaa marin 19 times, last 3 months ago
  2. Reich 6 times, last 3 months ago
  3. gamebusterz 4 times, last 3 months ago
  4. Aria Pahlavan 206 times, last 4 months ago
  5. iridic 13 times, last 4 months ago
18 more registered users
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.RuntimeException

    Unable to start activity ComponentInfo{ui.activity.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.EditText.setText(java.lang.CharSequence)' on a null object reference

    at android.app.ActivityThread.performLaunchActivity()
  2. Android Platform
    ActivityThread.handleRelaunchActivity
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
    3. android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4519)
    3 frames