Program: 14282
Project: 14282
Buggy source:
/** 
 * Helper method to retrieve   {@link Preference} references and initialize any data.
 */
private void initPreferences(){
  if (null != (mTitlePreference=(EditTextPreference)findPreference(getString(R.string.pref_key_site_title)))) {
    mTitlePreference.setOnPreferenceChangeListener(this);
    mTitlePreference.setSummary(mRemoteTitle);
  }
  if (null != (mTaglinePreference=(EditTextPreference)findPreference(getString(R.string.pref_key_site_tagline)))) {
    mTaglinePreference.setOnPreferenceChangeListener(this);
  }
  if (null != (mAddressPreference=(EditTextPreference)findPreference(getString(R.string.pref_key_site_address)))) {
    mAddressPreference.setOnPreferenceChangeListener(this);
  }
  if (null != (mPrivacyPreference=(DetailListPreference)findPreference(getString(R.string.pref_key_site_visibility)))) {
    if (!mBlog.isDotcomFlag()) {
      removePreference(R.string.pref_key_site_general,mPrivacyPreference);
    }
 else {
      mPrivacyPreference.setOnPreferenceChangeListener(this);
    }
  }
  if (null != (mLanguagePreference=(DetailListPreference)findPreference(getString(R.string.pref_key_site_language)))) {
    if (!mBlog.isDotcomFlag()) {
      removePreference(R.string.pref_key_site_general,mLanguagePreference);
    }
 else {
      mLanguagePreference.setOnPreferenceChangeListener(this);
      String[] languageIds=getResources().getStringArray(R.array.lang_ids);
      String[] languageCodes=getResources().getStringArray(R.array.language_codes);
      for (int i=0; i < languageIds.length && i < languageCodes.length; ++i) {
        mLanguageCodes.put(languageCodes[i],languageIds[i]);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Helper method to retrieve   {@link Preference} references and initialize any data.
 */
private void initPreferences(){
  if (null != (mTitlePreference=(EditTextPreference)findPreference(getString(R.string.pref_key_site_title)))) {
    mTitlePreference.setOnPreferenceChangeListener(this);
    changeEditTextPreferenceValue(mTitlePreference,StringUtils.unescapeHTML(mRemoteTitle));
  }
  if (null != (mTaglinePreference=(EditTextPreference)findPreference(getString(R.string.pref_key_site_tagline)))) {
    mTaglinePreference.setOnPreferenceChangeListener(this);
  }
  if (null != (mAddressPreference=(EditTextPreference)findPreference(getString(R.string.pref_key_site_address)))) {
    mAddressPreference.setOnPreferenceChangeListener(this);
  }
  if (null != (mPrivacyPreference=(DetailListPreference)findPreference(getString(R.string.pref_key_site_visibility)))) {
    if (!mBlog.isDotcomFlag()) {
      removePreference(R.string.pref_key_site_general,mPrivacyPreference);
    }
 else {
      mPrivacyPreference.setOnPreferenceChangeListener(this);
    }
  }
  if (null != (mLanguagePreference=(DetailListPreference)findPreference(getString(R.string.pref_key_site_language)))) {
    if (!mBlog.isDotcomFlag()) {
      removePreference(R.string.pref_key_site_general,mLanguagePreference);
    }
 else {
      mLanguagePreference.setOnPreferenceChangeListener(this);
      String[] languageIds=getResources().getStringArray(R.array.lang_ids);
      String[] languageCodes=getResources().getStringArray(R.array.language_codes);
      for (int i=0; i < languageIds.length && i < languageCodes.length; ++i) {
        mLanguageCodes.put(languageCodes[i],languageIds[i]);
      }
    }
  }
}