java.lang.RuntimeException: Unable to stop activity {com.example.e103046.sitef_v2/com.example.e103046.sitef_v2.ViewSettings}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.widget.CheckBox.isChecked()' on a null object reference

Stack Overflow | Packfacker | 4 months ago
  1. 0

    Android/Java CheckBox returns null, even when initialised

    Stack Overflow | 4 months ago | Packfacker
    java.lang.RuntimeException: Unable to stop activity {com.example.e103046.sitef_v2/com.example.e103046.sitef_v2.ViewSettings}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.widget.CheckBox.isChecked()' on a null object reference
  2. 0

    I have just written my first android app, and after 3 hours it still doesn't work

    Stack Overflow | 3 years ago | ollie299792458
    java.lang.IllegalStateException: Could not execute method of the activity
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    my CheckBox.isChecked() is always null

    Stack Overflow | 7 months ago | Friedrich Dylan
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.widget.CheckBox.isChecked()' on a null object reference
  5. 0

    GitHub comment 884#157115989

    GitHub | 1 year ago | Polynomdivison
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.widget.CheckBox.isChecked()' on a null object reference

    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.NullPointerException

      Attempt to invoke virtual method 'boolean android.widget.CheckBox.isChecked()' on a null object reference

      at com.example.e103046.sitef_v2.ViewSettings.initCheckBox()
    2. com.example.e103046
      ViewSettings.onStop
      1. com.example.e103046.sitef_v2.ViewSettings.initCheckBox(ViewSettings.java:83)
      2. com.example.e103046.sitef_v2.ViewSettings.onStop(ViewSettings.java:123)
      2 frames
    3. Android Platform
      ActivityThread.performDestroyActivity
      1. android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1275)
      2. android.app.Activity.performStop(Activity.java:6492)
      3. android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4145)
      3 frames