Program: 25900
Project: 25900
Buggy source:
/** 
 * <p> Initialize ACRA for a given Application. The call to this method should be placed as soon as possible in the   {@link Application#onCreate()}method. </p>
 * @param app Your Application class.
 * @throws IllegalStateException if it is called more than once.
 */
public static void init(Application app){
  if (mApplication != null) {
    throw new IllegalStateException("String_Node_Str");
  }
  mApplication=app;
  mReportsCrashes=mApplication.getClass().getAnnotation(ReportsCrashes.class);
  if (mReportsCrashes == null) {
    Log.e(LOG_TAG,"String_Node_Str" + mApplication.getPackageName());
    return;
  }
  final SharedPreferences prefs=getACRASharedPreferences();
  Log.d(ACRA.LOG_TAG,"String_Node_Str");
  try {
    checkCrashResources();
    Log.d(LOG_TAG,"String_Node_Str" + mApplication.getPackageName() + "String_Node_Str");
    final boolean enableAcra=!shouldDisableACRA(prefs);
    final ErrorReporter errorReporter=new ErrorReporter(mApplication.getApplicationContext(),prefs,enableAcra);
    addReportSenders(errorReporter);
    errorReporterSingleton=errorReporter;
  }
 catch (  ACRAConfigurationException e) {
    Log.w(LOG_TAG,"String_Node_Str",e);
  }
  mPrefListener=new OnSharedPreferenceChangeListener(){
    @Override public void onSharedPreferenceChanged(    SharedPreferences sharedPreferences,    String key){
      if (PREF_DISABLE_ACRA.equals(key) || PREF_ENABLE_ACRA.equals(key)) {
        final boolean enableAcra=!shouldDisableACRA(sharedPreferences);
        getErrorReporter().setEnabled(enableAcra);
      }
    }
  }
;
  prefs.registerOnSharedPreferenceChangeListener(mPrefListener);
}

Fixed version (ground truth):
/** 
 * <p> Initialize ACRA for a given Application. The call to this method should be placed as soon as possible in the   {@link Application#onCreate()}method. </p>
 * @param app Your Application class.
 * @throws IllegalStateException if it is called more than once.
 */
public static void init(Application app){
  if (mApplication != null) {
    if (App.DEBUG) {
      throw new IllegalStateException("String_Node_Str");
    }
    return;
  }
  mApplication=app;
  mReportsCrashes=mApplication.getClass().getAnnotation(ReportsCrashes.class);
  if (mReportsCrashes == null) {
    Log.e(LOG_TAG,"String_Node_Str" + mApplication.getPackageName());
    return;
  }
  final SharedPreferences prefs=getACRASharedPreferences();
  Log.d(ACRA.LOG_TAG,"String_Node_Str");
  try {
    checkCrashResources();
    if (App.DEBUG) {
      Log.d(LOG_TAG,"String_Node_Str" + mApplication.getPackageName() + "String_Node_Str");
    }
    final boolean enableAcra=!shouldDisableACRA(prefs);
    final ErrorReporter errorReporter=new ErrorReporter(mApplication.getApplicationContext(),prefs,enableAcra);
    addReportSenders(errorReporter);
    errorReporterSingleton=errorReporter;
  }
 catch (  ACRAConfigurationException e) {
    if (App.DEBUG) {
      Log.w(LOG_TAG,"String_Node_Str",e);
    }
  }
  mPrefListener=new OnSharedPreferenceChangeListener(){
    @Override public void onSharedPreferenceChanged(    SharedPreferences sharedPreferences,    String key){
      if (PREF_DISABLE_ACRA.equals(key) || PREF_ENABLE_ACRA.equals(key)) {
        final boolean enableAcra=!shouldDisableACRA(sharedPreferences);
        getErrorReporter().setEnabled(enableAcra);
      }
    }
  }
;
  prefs.registerOnSharedPreferenceChangeListener(mPrefListener);
}