java.lang.NullPointerException

Attempt to invoke virtual method 'int com.ichi2.ui.SeekBarPreference.getValue()' on a null object reference

Samebug tips0

There are no available Samebug tips.

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

Solutions on the web1

  • via GitHub by hssm
    ,
  • Stack trace

    • java.lang.NullPointerException: Attempt to invoke virtual method 'int com.ichi2.ui.SeekBarPreference.getValue()' on a null object reference at com.ichi2.anki.Preferences.updatePreference(Preferences.java:516) at com.ichi2.anki.Preferences.access$300(Preferences.java:90) at com.ichi2.anki.Preferences$SettingsFragment.onSharedPreferenceChanged(Preferences.java:812) at android.app.SharedPreferencesImpl$EditorImpl.notifyListeners(SharedPreferencesImpl.java:479) at android.app.SharedPreferencesImpl$EditorImpl.apply(SharedPreferencesImpl.java:387) at android.preference.Preference.tryCommit(Preference.java:1415) at android.preference.Preference.persistInt(Preference.java:1545) at com.ichi2.ui.SeekBarPreference.setValue(SeekBarPreference.java:118) at com.ichi2.anki.Preferences.initPreference(Preferences.java:428) at com.ichi2.anki.Preferences.initAllPreferences(Preferences.java:387) at com.ichi2.anki.Preferences.access$200(Preferences.java:90) at com.ichi2.anki.Preferences$SettingsFragment.onCreate(Preferences.java:789) at android.app.Fragment.performCreate(Fragment.java:2335) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:949) at android.app.BackStackRecord.setLastIn(BackStackRecord.java:857) at android.app.BackStackRecord.calculateFragments(BackStackRecord.java:897) at android.app.BackStackRecord.run(BackStackRecord.java:727) at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1578) at android.app.FragmentManagerImpl$1.run(FragmentManager.java:483) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6077) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

    Write tip

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

    No Bugmate found.