java.lang.NullPointerException: Attempt to invoke virtual method 'int android.widget.RadioGroup.getCheckedRadioButtonId()' on a null object reference

tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 1

    Application initial Activity

    Stack Overflow | 7 months ago | Иван Коданев
    java.lang.NullPointerException: Attempt to invoke virtual method 'int android.widget.RadioGroup.getCheckedRadioButtonId()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'int android.widget.RadioGroup.getCheckedRadioButtonId()' on a null object reference

      at ru.j_soft.contact.MainActivity.onSaveInstanceState()
    2. ru.j_soft.contact
      MainActivity.onSaveInstanceState
      1. ru.j_soft.contact.MainActivity.onSaveInstanceState(MainActivity.java:392)
      1 frame
    3. Android Platform
      ActivityThread.handleStopActivity
      1. android.app.Activity.performSaveInstanceState(Activity.java:1298)
      2. android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1289)
      3. android.app.ActivityThread.callCallActivityOnSaveInstanceState(ActivityThread.java:4088)
      4. android.app.ActivityThread.performStopActivityInner(ActivityThread.java:3490)
      5. android.app.ActivityThread.handleStopActivity(ActivityThread.java:3550)
      5 frames