Program: 167146
Project: 167146
Buggy source:
/** 
 * populates properties of currently selected word
 */
private void populateProperties(){
  ConWord curWord=(ConWord)lstLexicon.getSelectedValue();
  boolean localPopulating=curPopulating;
  curPopulating=true;
  try {
    if (curWord == null) {
      if (!namePopulating) {
        namePopulating=true;
        ((PTextField)txtConWord).setDefault();
        namePopulating=false;
      }
      ((PTextField)txtLocalWord).setDefault();
      ((PTextField)txtProc).setDefault();
      cmbType.setSelectedItem(defTypeValue);
      chkProcOverride.setSelected(false);
      chkRuleOverride.setSelected(false);
      setPropertiesEnabled(false);
    }
 else {
      if (!namePopulating) {
        namePopulating=true;
        txtConWord.setText(curWord.getValue());
        namePopulating=false;
      }
      txtDefinition.setText(curWord.getDefinition());
      txtLocalWord.setText(curWord.getLocalWord().equals("String_Node_Str") ? ((PTextField)txtLocalWord).getDefaultValue() : curWord.getLocalWord());
      txtProc.setText(curWord.getPronunciation().equals("String_Node_Str") ? ((PTextField)txtProc).getDefaultValue() : curWord.getPronunciation());
      TypeNode type=curWord.getWordTypeId() == 0 ? null : core.getTypes().getNodeById(curWord.getWordTypeId());
      cmbType.setSelectedItem(type == null ? defTypeValue : type);
      chkProcOverride.setSelected(curWord.isProcOverride());
      chkRuleOverride.setSelected(curWord.isRulesOverrride());
      setupClassPanel(curWord.getWordTypeId());
      populateClassPanel();
      setPropertiesEnabled(true);
    }
  }
 catch (  Exception e) {
    InfoBox.error("String_Node_Str","String_Node_Str" + e.getLocalizedMessage(),this);
  }
  setAllGreyProps();
  curPopulating=localPopulating;
}

Fixed version (ground truth):
/** 
 * populates properties of currently selected word
 */
private void populateProperties(){
  ConWord curWord=(ConWord)lstLexicon.getSelectedValue();
  boolean localPopulating=curPopulating;
  curPopulating=true;
  try {
    if (curWord == null) {
      if (!namePopulating) {
        namePopulating=true;
        ((PTextField)txtConWord).setDefault();
        namePopulating=false;
      }
      ((PTextField)txtLocalWord).setDefault();
      ((PTextField)txtProc).setDefault();
      ((PTextPane)txtDefinition).setDefault();
      cmbType.setSelectedItem(defTypeValue);
      chkProcOverride.setSelected(false);
      chkRuleOverride.setSelected(false);
      setPropertiesEnabled(false);
    }
 else {
      if (!namePopulating) {
        namePopulating=true;
        txtConWord.setText(curWord.getValue());
        namePopulating=false;
      }
      txtDefinition.setText(curWord.getDefinition());
      txtLocalWord.setText(curWord.getLocalWord().equals("String_Node_Str") ? ((PTextField)txtLocalWord).getDefaultValue() : curWord.getLocalWord());
      txtProc.setText(curWord.getPronunciation().equals("String_Node_Str") ? ((PTextField)txtProc).getDefaultValue() : curWord.getPronunciation());
      TypeNode type=curWord.getWordTypeId() == 0 ? null : core.getTypes().getNodeById(curWord.getWordTypeId());
      cmbType.setSelectedItem(type == null ? defTypeValue : type);
      chkProcOverride.setSelected(curWord.isProcOverride());
      chkRuleOverride.setSelected(curWord.isRulesOverrride());
      setupClassPanel(curWord.getWordTypeId());
      populateClassPanel();
      setPropertiesEnabled(true);
    }
  }
 catch (  Exception e) {
    InfoBox.error("String_Node_Str","String_Node_Str" + e.getLocalizedMessage(),this);
  }
  setAllGreyProps();
  curPopulating=localPopulating;
}