java.lang.NullPointerException

Attempt to invoke virtual method 'void android.preference.CheckBoxPreference.setChecked(boolean)' 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 web21089

  • via Stack Overflow by khoi
    , 6 months ago
    Attempt to invoke virtual method 'void android.preference.CheckBoxPreference.setChecked(boolean)' on a null object reference
  • Attempt to invoke virtual method 'void com.android.systemui.recents.views.TaskStackView.updateMinMaxScrollForStack(com.android.systemui.recents.model.TaskStack, boolean, boolean)' on a null object reference
  • Attempt to invoke virtual method 'void com.jamesg.windforecast.SpotFragment.SpotWrapperFragment.loadSpot(java.lang.String, boolean, boolean)' on a null object reference
  • Stack trace

    • java.lang.NullPointerException: Attempt to invoke virtual method 'void android.preference.CheckBoxPreference.setChecked(boolean)' on a null object reference at com.example.user.uniselic.MyPreferencesActivity.uncheckAll(MyPreferencesActivity.java:51) at com.example.user.uniselic.HomeActivity.onOptionsItemSelected(HomeActivity.java:193) at android.app.Activity.onMenuItemSelected(Activity.java:2928) at android.support.v4.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:406) at android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:195) at android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:103)

    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

    You’re the first here who have seen this exception.