I am trying to figure out the cause of this error it occurs on startup when i try to get the shared preferences for the app. the code is just:
settings = this.getSha
In my case
public static String docsDownloadStatus;
SharedPreferences sharedPref = context.getSharedPreferences(
"Pref-Values", Context.MODE_PRIVATE);
SharedPreferences.Editor editor = sharedPref.edit();
>>>> editor.putString(docsDownloadStatus, value);
editor.commit();
"docsDownloadStatus" is not initialized because of this whole shared pref file was corrupted. After initializing docsDownloadStatus key everything worked fine.