Program: 73597
Project: 73597
Buggy source:
protected ArrayList<Attribute> getAttributes() throws IllegalActionException {
  ArrayList<Attribute> returnList=super.getAttributes();
  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 GenericAttributePanel) {
          try {
            PTDBSearchAttribute attribute=new PTDBSearchAttribute();
            attribute.setGenericAttribute(true);
            if ((((GenericAttributePanel)componentArray2[j]).getAttributeClass()).length() > 0) {
              attribute.setGenericClassName((((GenericAttributePanel)componentArray2[j]).getAttributeClass()));
            }
            attribute.setName(((GenericAttributePanel)componentArray2[j]).getAttributeName());
            if ((((GenericAttributePanel)componentArray2[j]).getValue()).length() > 0) {
              attribute.setExpression(((GenericAttributePanel)componentArray2[j]).getValue());
            }
            returnList.add(attribute);
          }
 catch (          NameDuplicationException e) {
          }
        }
      }
    }
  }
  return returnList;
}

Fixed version (ground truth):
protected ArrayList<Attribute> getAttributes() throws IllegalActionException {
  ArrayList<Attribute> returnList=new ArrayList();
  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 stringParameter;
            stringParameter=new StringParameter(new NamedObj(),((ModelAttributePanel)componentArray2[j]).getAttributeName());
            stringParameter.setExpression(((ModelAttributePanel)componentArray2[j]).getValue());
            returnList.add(stringParameter);
          }
 catch (          NameDuplicationException e) {
            e.printStackTrace();
          }
        }
      }
    }
  }
  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 GenericAttributePanel) {
          try {
            PTDBSearchAttribute attribute=new PTDBSearchAttribute();
            attribute.setGenericAttribute(true);
            if ((((GenericAttributePanel)componentArray2[j]).getAttributeClass()).length() > 0) {
              attribute.setGenericClassName((((GenericAttributePanel)componentArray2[j]).getAttributeClass()));
            }
            attribute.setName(((GenericAttributePanel)componentArray2[j]).getAttributeName());
            attribute.setExpression(((GenericAttributePanel)componentArray2[j]).getValue());
            returnList.add(attribute);
          }
 catch (          NameDuplicationException e) {
            e.printStackTrace();
          }
        }
      }
    }
  }
  return returnList;
}