I am trying to build a feature within a ROM, the build completes without any isseu and the feature is working, however when i want to open it's settings it force closes.
I have made a logcat:
E/AndroidRuntime( 3440): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 3440): at com.android.settings.mahdi.aokp.ProgressBar.onCreate(ProgressBar.java:86)
And this is the corresponding lines in ProgressBar.java:
mprogressbar_speed = (SeekBarPreference) findPreference(PROGRESSBAR_SPEED);
mprogressbar_speed.setValue(Settings.System.getInt(getContentResolver(), <---- this is line 86
Settings.System.PROGRESSBAR_SPEED, 4));
mprogressbar_speed.setOnPreferenceChangeListener(this);
I dont know how to resolve this isseu and i can use some help...
Thanks in advance...