Program: 3218
Project: 3218
Buggy source:
public void addBody(Body body) throws SAXException, WingException, SQLException, IOException {
  int collectionID=parameters.getParameterAsInteger("String_Node_Str",-1);
  Collection collection=Collection.find(context,collectionID);
  String query=decodeFromURL(parameters.getParameter("String_Node_Str",null));
  java.util.List<Item> items=preformSearch(collection,query);
  Division div=body.addInteractiveDivision("String_Node_Str",contextPath + "String_Node_Str",Division.METHOD_GET,"String_Node_Str");
  div.setHead(T_head1.parameterize(query));
  Para actions=div.addPara();
  actions.addButton("String_Node_Str").setValue(T_submit_map);
  actions.addButton("String_Node_Str").setValue(T_submit_cancel);
  Table table=div.addTable("String_Node_Str",1,1);
  Row header=table.addRow(Row.ROLE_HEADER);
  header.addCellContent(T_column1);
  header.addCellContent(T_column2);
  header.addCellContent(T_column3);
  header.addCellContent(T_column4);
  for (  Item item : items) {
    String itemID=String.valueOf(item.getID());
    Collection owningCollection=item.getOwningCollection();
    String owning=owningCollection.getMetadata("String_Node_Str");
    String author="String_Node_Str";
    DCValue[] dcAuthors=item.getDC("String_Node_Str",Item.ANY,Item.ANY);
    if (dcAuthors != null && dcAuthors.length >= 1) {
      author=dcAuthors[0].value;
    }
    String title="String_Node_Str";
    DCValue[] dcTitles=item.getDC("String_Node_Str",null,Item.ANY);
    if (dcTitles != null && dcTitles.length >= 1) {
      title=dcTitles[0].value;
    }
    String url=contextPath + "String_Node_Str" + item.getHandle();
    Row row=table.addRow();
    boolean canBeMapped=true;
    Collection[] collections=item.getCollections();
    for (    Collection c : collections) {
      if (c.getID() == collectionID) {
        canBeMapped=false;
      }
    }
    if (canBeMapped) {
      CheckBox select=row.addCell().addCheckBox("String_Node_Str");
      select.setLabel("String_Node_Str");
      select.addOption(itemID);
    }
 else {
      row.addCell().addContent("String_Node_Str");
    }
    row.addCellContent(owning);
    row.addCell().addXref(url,author);
    row.addCell().addXref(url,title);
  }
  actions=div.addPara();
  actions.addButton("String_Node_Str").setValue(T_submit_map);
  actions.addButton("String_Node_Str").setValue(T_submit_cancel);
  div.addHidden("String_Node_Str").setValue(knot.getId());
}

Fixed version (ground truth):
public void addBody(Body body) throws SAXException, WingException, SQLException, IOException {
  int collectionID=parameters.getParameterAsInteger("String_Node_Str",-1);
  Collection collection=Collection.find(context,collectionID);
  String query=decodeFromURL(parameters.getParameter("String_Node_Str",null));
  java.util.List<Item> items=preformSearch(collection,query);
  Division div=body.addInteractiveDivision("String_Node_Str",contextPath + "String_Node_Str",Division.METHOD_GET,"String_Node_Str");
  div.setHead(T_head1.parameterize(query));
  Para actions=div.addPara();
  actions.addButton("String_Node_Str").setValue(T_submit_map);
  actions.addButton("String_Node_Str").setValue(T_submit_cancel);
  Table table=div.addTable("String_Node_Str",1,1);
  Row header=table.addRow(Row.ROLE_HEADER);
  header.addCellContent(T_column1);
  header.addCellContent(T_column2);
  header.addCellContent(T_column3);
  header.addCellContent(T_column4);
  for (  Item item : items) {
    String itemID=String.valueOf(item.getID());
    Collection owningCollection=item.getOwningCollection();
    String owning="String_Node_Str";
    if (owningCollection != null)     owning=owningCollection.getMetadata("String_Node_Str");
    String author="String_Node_Str";
    DCValue[] dcCreators=item.getDC("String_Node_Str",Item.ANY,Item.ANY);
    if (dcCreators != null && dcCreators.length >= 1) {
      author=dcCreators[0].value;
    }
 else {
      DCValue[] dcContributors=item.getDC("String_Node_Str",Item.ANY,Item.ANY);
      if (dcContributors != null && dcContributors.length >= 1) {
        author=dcContributors[0].value;
      }
    }
    String title="String_Node_Str";
    DCValue[] dcTitles=item.getDC("String_Node_Str",null,Item.ANY);
    if (dcTitles != null && dcTitles.length >= 1) {
      title=dcTitles[0].value;
    }
    String url=contextPath + "String_Node_Str" + item.getHandle();
    Row row=table.addRow();
    boolean canBeMapped=true;
    Collection[] collections=item.getCollections();
    for (    Collection c : collections) {
      if (c.getID() == collectionID) {
        canBeMapped=false;
      }
    }
    if (canBeMapped) {
      CheckBox select=row.addCell().addCheckBox("String_Node_Str");
      select.setLabel("String_Node_Str");
      select.addOption(itemID);
    }
 else {
      row.addCell().addContent("String_Node_Str");
    }
    row.addCellContent(owning);
    row.addCell().addXref(url,author);
    row.addCell().addXref(url,title);
  }
  actions=div.addPara();
  actions.addButton("String_Node_Str").setValue(T_submit_map);
  actions.addButton("String_Node_Str").setValue(T_submit_cancel);
  div.addHidden("String_Node_Str").setValue(knot.getId());
}