Program: 59532
Project: 59532
Buggy source:
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  addPreferencesFromResource(R.xml.preferences);
  Preference about=findPreference("String_Node_Str");
  about.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      showDisclaimer();
      return true;
    }
  }
);
  Preference help=findPreference("String_Node_Str");
  help.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      showHelp();
      return true;
    }
  }
);
  for (int i=1; i < 11; i++) {
    String key="String_Node_Str" + i;
    findPreference(key).setOnPreferenceClickListener(new OnPreferenceClickListener(){
      @Override public boolean onPreferenceClick(      Preference preference){
        mSymbolSearchKey=preference.getKey();
        String query=preference.getSharedPreferences().getString(mSymbolSearchKey,"String_Node_Str");
        startSearch(query,false,null,false);
        return true;
      }
    }
);
  }
  Preference help_usage=findPreference("String_Node_Str");
  help_usage.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      showHelpUsage();
      return true;
    }
  }
);
  Preference help_portfolio=findPreference("String_Node_Str");
  help_portfolio.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      showHelpPortfolio();
      return true;
    }
  }
);
  Preference help_prices=findPreference("String_Node_Str");
  help_prices.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      showHelpPrices();
      return true;
    }
  }
);
  Preference updateNow=findPreference("String_Node_Str");
  updateNow.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      WidgetProviderBase.updateWidgets(getApplicationContext(),WidgetProviderBase.VIEW_UPDATE);
      finish();
      return true;
    }
  }
);
  Preference portfolio=findPreference("String_Node_Str");
  portfolio.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      Intent intent=new Intent(PreferencesActivity.this,PortfolioActivity.class);
      startActivity(intent);
      return true;
    }
  }
);
  Preference backup_portfolio=findPreference("String_Node_Str");
  backup_portfolio.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      Storage storage=PreferenceStorage.getInstance(PreferencesActivity.this);
      Cache cache=new PreferenceCache(PreferencesActivity.this);
      WidgetRepository widgetRepository=new AndroidWidgetRepository(PreferencesActivity.this);
      new PortfolioStockRepository(storage,cache,widgetRepository).backupPortfolio(PreferencesActivity.this);
      return true;
    }
  }
);
  Preference restore_portfolio=findPreference("String_Node_Str");
  restore_portfolio.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      Storage storage=PreferenceStorage.getInstance(PreferencesActivity.this);
      Cache cache=new PreferenceCache(PreferencesActivity.this);
      WidgetRepository widgetRepository=new AndroidWidgetRepository(PreferencesActivity.this);
      new PortfolioStockRepository(storage,cache,widgetRepository).backupPortfolio(PreferencesActivity.this);
      return true;
    }
  }
);
  Preference backup_widget=findPreference("String_Node_Str");
  backup_widget.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      DialogTools.InputAlertCallable callable=new DialogTools.InputAlertCallable(){
        @Override public Object call() throws Exception {
          UserData.backupWidget(PreferencesActivity.this,mAppWidgetId,this.getInputValue());
          return new Object();
        }
      }
;
      DialogTools.inputWithCallback(PreferencesActivity.this,"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str" + DateTools.getNowAsString(),callable);
      return true;
    }
  }
);
  Preference restore_widget=findPreference("String_Node_Str");
  restore_widget.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      CharSequence[] backupNames=UserData.getWidgetBackupNames(PreferencesActivity.this);
      if (backupNames == null) {
        DialogTools.showSimpleDialog(PreferencesActivity.this,"String_Node_Str","String_Node_Str");
        return true;
      }
      DialogTools.InputAlertCallable callable=new DialogTools.InputAlertCallable(){
        @Override public Object call() throws Exception {
          UserData.restoreWidget(PreferencesActivity.this,mAppWidgetId,this.getInputValue());
          return new Object();
        }
      }
;
      DialogTools.choiceWithCallback(PreferencesActivity.this,"String_Node_Str","String_Node_Str",backupNames,callable);
      return true;
    }
  }
);
  Preference rate_app=findPreference("String_Node_Str");
  rate_app.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      showFeedbackOption();
      return true;
    }
  }
);
  Preference feedback=findPreference("String_Node_Str");
  feedback.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      Intent intent=new Intent(Intent.ACTION_SEND);
      intent.setType("String_Node_Str");
      String[] toAddress={"String_Node_Str"};
      intent.putExtra(Intent.EXTRA_EMAIL,toAddress);
      intent.putExtra(Intent.EXTRA_SUBJECT,getString(R.string.app_name) + "String_Node_Str" + VersionTools.BUILD);
      intent.setType("String_Node_Str");
      try {
        startActivity(intent);
        return true;
      }
 catch (      Exception e) {
        e.printStackTrace();
      }
catch (      Throwable e) {
        e.printStackTrace();
      }
      DialogTools.showSimpleDialog(getApplicationContext(),"String_Node_Str","String_Node_Str");
      return true;
    }
  }
);
  Preference change_history=findPreference("String_Node_Str");
  change_history.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      showChangeLog();
      return true;
    }
  }
);
  mTimeSetListener=new TimePickerDialog.OnTimeSetListener(){
    @Override public void onTimeSet(    TimePicker view,    int hourOfDay,    int minute){
      setTimePickerPreference(hourOfDay,minute);
    }
  }
;
  Preference update_start=findPreference("String_Node_Str");
  update_start.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      showTimePickerDialog(preference,"String_Node_Str");
      return true;
    }
  }
);
  Preference update_end=findPreference("String_Node_Str");
  update_end.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      showTimePickerDialog(preference,"String_Node_Str");
      return true;
    }
  }
);
}

Fixed version (ground truth):
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  addPreferencesFromResource(R.xml.preferences);
  Preference about=findPreference("String_Node_Str");
  about.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      showDisclaimer();
      return true;
    }
  }
);
  Preference help=findPreference("String_Node_Str");
  help.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      showHelp();
      return true;
    }
  }
);
  for (int i=1; i < 11; i++) {
    String key="String_Node_Str" + i;
    findPreference(key).setOnPreferenceClickListener(new OnPreferenceClickListener(){
      @Override public boolean onPreferenceClick(      Preference preference){
        mSymbolSearchKey=preference.getKey();
        String query=preference.getSharedPreferences().getString(mSymbolSearchKey,"String_Node_Str");
        startSearch(query,false,null,false);
        return true;
      }
    }
);
  }
  Preference help_usage=findPreference("String_Node_Str");
  help_usage.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      showHelpUsage();
      return true;
    }
  }
);
  Preference help_portfolio=findPreference("String_Node_Str");
  help_portfolio.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      showHelpPortfolio();
      return true;
    }
  }
);
  Preference help_prices=findPreference("String_Node_Str");
  help_prices.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      showHelpPrices();
      return true;
    }
  }
);
  Preference updateNow=findPreference("String_Node_Str");
  updateNow.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      WidgetProviderBase.updateWidgets(getApplicationContext(),WidgetProviderBase.VIEW_UPDATE);
      finish();
      return true;
    }
  }
);
  Preference portfolio=findPreference("String_Node_Str");
  portfolio.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      Intent intent=new Intent(PreferencesActivity.this,PortfolioActivity.class);
      startActivity(intent);
      return true;
    }
  }
);
  Preference backup_portfolio=findPreference("String_Node_Str");
  backup_portfolio.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      Storage storage=PreferenceStorage.getInstance(PreferencesActivity.this);
      Cache cache=new PreferenceCache(PreferencesActivity.this);
      WidgetRepository widgetRepository=new AndroidWidgetRepository(PreferencesActivity.this);
      new PortfolioStockRepository(storage,cache,widgetRepository).backupPortfolio(PreferencesActivity.this);
      return true;
    }
  }
);
  Preference restore_portfolio=findPreference("String_Node_Str");
  restore_portfolio.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      Storage storage=PreferenceStorage.getInstance(PreferencesActivity.this);
      Cache cache=new PreferenceCache(PreferencesActivity.this);
      WidgetRepository widgetRepository=new AndroidWidgetRepository(PreferencesActivity.this);
      new PortfolioStockRepository(storage,cache,widgetRepository).restorePortfolio(PreferencesActivity.this);
      return true;
    }
  }
);
  Preference backup_widget=findPreference("String_Node_Str");
  backup_widget.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      DialogTools.InputAlertCallable callable=new DialogTools.InputAlertCallable(){
        @Override public Object call() throws Exception {
          UserData.backupWidget(PreferencesActivity.this,mAppWidgetId,this.getInputValue());
          return new Object();
        }
      }
;
      DialogTools.inputWithCallback(PreferencesActivity.this,"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str" + DateTools.getNowAsString(),callable);
      return true;
    }
  }
);
  Preference restore_widget=findPreference("String_Node_Str");
  restore_widget.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      CharSequence[] backupNames=UserData.getWidgetBackupNames(PreferencesActivity.this);
      if (backupNames == null) {
        DialogTools.showSimpleDialog(PreferencesActivity.this,"String_Node_Str","String_Node_Str");
        return true;
      }
      DialogTools.InputAlertCallable callable=new DialogTools.InputAlertCallable(){
        @Override public Object call() throws Exception {
          UserData.restoreWidget(PreferencesActivity.this,mAppWidgetId,this.getInputValue());
          return new Object();
        }
      }
;
      DialogTools.choiceWithCallback(PreferencesActivity.this,"String_Node_Str","String_Node_Str",backupNames,callable);
      return true;
    }
  }
);
  Preference rate_app=findPreference("String_Node_Str");
  rate_app.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      showFeedbackOption();
      return true;
    }
  }
);
  Preference feedback=findPreference("String_Node_Str");
  feedback.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      Intent intent=new Intent(Intent.ACTION_SEND);
      intent.setType("String_Node_Str");
      String[] toAddress={"String_Node_Str"};
      intent.putExtra(Intent.EXTRA_EMAIL,toAddress);
      intent.putExtra(Intent.EXTRA_SUBJECT,getString(R.string.app_name) + "String_Node_Str" + VersionTools.BUILD);
      intent.setType("String_Node_Str");
      try {
        startActivity(intent);
        return true;
      }
 catch (      Exception e) {
        e.printStackTrace();
      }
catch (      Throwable e) {
        e.printStackTrace();
      }
      DialogTools.showSimpleDialog(getApplicationContext(),"String_Node_Str","String_Node_Str");
      return true;
    }
  }
);
  Preference change_history=findPreference("String_Node_Str");
  change_history.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      showChangeLog();
      return true;
    }
  }
);
  mTimeSetListener=new TimePickerDialog.OnTimeSetListener(){
    @Override public void onTimeSet(    TimePicker view,    int hourOfDay,    int minute){
      setTimePickerPreference(hourOfDay,minute);
    }
  }
;
  Preference update_start=findPreference("String_Node_Str");
  update_start.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      showTimePickerDialog(preference,"String_Node_Str");
      return true;
    }
  }
);
  Preference update_end=findPreference("String_Node_Str");
  update_end.setOnPreferenceClickListener(new OnPreferenceClickListener(){
    @Override public boolean onPreferenceClick(    Preference preference){
      showTimePickerDialog(preference,"String_Node_Str");
      return true;
    }
  }
);
}