Program: 73735
Project: 73735
Buggy source:
private void _simpleSearch() throws DBConnectionException, DBExecutionException {
  SearchResultsFrame searchResultsFrame=new SearchResultsFrame(_containerModel,_sourceFrame,_configuration);
  SearchResultBuffer searchResultBuffer=new SearchResultBuffer();
  searchResultBuffer.addObserver(searchResultsFrame);
  SearchCriteria searchCriteria=new SearchCriteria();
  ArrayList<Attribute> attributesList=new ArrayList<Attribute>();
  Component[] componentArray1=_attListPanel.getComponents();
  for (int i=0; i < componentArray1.length; i++) {
    if (componentArray1[i] instanceof JPanel) {
      Component[] componentArray2=((JPanel)componentArray1[i]).getComponents();
      for (int j=0; j < componentArray2.length; j++) {
        if (componentArray2[j] instanceof ModelAttributePanel) {
          try {
            StringParameter attributeToAdd=new StringParameter(_containerModel,((ModelAttributePanel)componentArray2[j]).getAttributeName());
            attributeToAdd.setExpression(((ModelAttributePanel)componentArray2[j]).getValue());
            attributesList.add(attributeToAdd);
          }
 catch (          Exception e) {
          }
        }
      }
    }
  }
  try {
    StringParameter attributeToAdd=new StringParameter(_containerModel,"String_Node_Str");
    attributeToAdd.setExpression(_modelName.getText());
    attributesList.add(attributeToAdd);
  }
 catch (  Exception e) {
  }
  searchCriteria.setAttributes(attributesList);
  searchResultsFrame.pack();
  searchResultsFrame.setVisible(true);
  SearchManager searchManager=new SearchManager();
  try {
    searchManager.search(searchCriteria,searchResultBuffer);
  }
 catch (  DBConnectionException e1) {
    searchResultsFrame.setVisible(false);
    searchResultsFrame.dispose();
    MessageHandler.error("String_Node_Str",e1);
  }
catch (  DBExecutionException e2) {
    searchResultsFrame.setVisible(false);
    searchResultsFrame.dispose();
    MessageHandler.error("String_Node_Str",e2);
  }
  setVisible(false);
}

Fixed version (ground truth):
private void _simpleSearch() throws DBConnectionException, DBExecutionException {
  SearchResultsFrame searchResultsFrame=new SearchResultsFrame(_containerModel,_sourceFrame,_configuration);
  SearchResultBuffer searchResultBuffer=new SearchResultBuffer();
  searchResultBuffer.addObserver(searchResultsFrame);
  SearchCriteria searchCriteria=new SearchCriteria();
  ArrayList<Attribute> attributesList=new ArrayList<Attribute>();
  Component[] componentArray1=_attListPanel.getComponents();
  for (int i=0; i < componentArray1.length; i++) {
    if (componentArray1[i] instanceof JPanel) {
      Component[] componentArray2=((JPanel)componentArray1[i]).getComponents();
      for (int j=0; j < componentArray2.length; j++) {
        if (componentArray2[j] instanceof ModelAttributePanel) {
          try {
            StringParameter attributeToAdd=new StringParameter(null,((ModelAttributePanel)componentArray2[j]).getAttributeName());
            attributeToAdd.setExpression(((ModelAttributePanel)componentArray2[j]).getValue());
            attributesList.add(attributeToAdd);
          }
 catch (          Exception e) {
          }
        }
      }
    }
  }
  try {
    StringParameter attributeToAdd=new StringParameter(_containerModel,"String_Node_Str");
    attributeToAdd.setExpression(_modelName.getText());
    attributesList.add(attributeToAdd);
  }
 catch (  Exception e) {
  }
  searchCriteria.setAttributes(attributesList);
  searchResultsFrame.pack();
  searchResultsFrame.setVisible(true);
  SearchManager searchManager=new SearchManager();
  try {
    searchManager.search(searchCriteria,searchResultBuffer);
  }
 catch (  DBConnectionException e1) {
    searchResultsFrame.setVisible(false);
    searchResultsFrame.dispose();
    MessageHandler.error("String_Node_Str",e1);
  }
catch (  DBExecutionException e2) {
    searchResultsFrame.setVisible(false);
    searchResultsFrame.dispose();
    MessageHandler.error("String_Node_Str",e2);
  }
  setVisible(false);
}