java.lang.NullPointerException

Attempt to invoke virtual method 'int android.widget.ImageView.getId()' on a null object reference java.lang.RuntimeException: Unable to resume activity {org.radiomango.app/org.radiomango.app.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.widget.ImageView.getId()' on a null object reference

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web21167

  • Attempt to invoke virtual method 'int android.widget.ImageView.getId()' on a null object reference java.lang.RuntimeException: Unable to resume activity {org.radiomango.app/org.radiomango.app.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.widget.ImageView.getId()' on a null object reference
  • Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(int, int, int, int)' on a null object reference
  • Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(int, int, int, int)' on a null object reference
  • Stack trace

    • java.lang.NullPointerException: Attempt to invoke virtual method 'int android.widget.ImageView.getId()' on a null object reference java.lang.RuntimeException: Unable to resume activity {org.radiomango.app/org.radiomango.app.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.widget.ImageView.getId()' on a null object reference at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3385) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3425) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2698)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 6 months ago
    Unknown user
    Once, 7 months ago
    5 times, 8 months ago
    9 times, 9 months ago
    1249 times, 1 year ago
    4 more bugmates