Program: 69585
Project: 69585
Buggy source:
private RuleWrapper initRuleWrapper(int pos,Rule rule,FormItemContainer formLayout){
  int i=counter.incrementAndGet();
  RuleWrapper wrapper=new RuleWrapper(rule);
  wrapper.setPosition(pos);
  SingleSelection roleEl=uifactory.addDropdownSingleselect("String_Node_Str" + i,null,formLayout,roleKeys,roleValues,null);
  String role=rule.getRole();
  for (int j=roleKeys.length; j-- > 0; ) {
    if (roleKeys[j].equals(role)) {
      roleEl.select(roleKeys[j],true);
    }
  }
  wrapper.setRoleEl(roleEl);
  SingleSelection attrNameEl=uifactory.addDropdownSingleselect("String_Node_Str" + i,null,formLayout,attrKeys,attrValues,null);
  String userAttributeKey=rule.getUserAttributeKey();
  for (int j=attrKeys.length; j-- > 0; ) {
    if (attrKeys[j].equals(userAttributeKey)) {
      attrNameEl.select(attrKeys[j],true);
    }
  }
  wrapper.setAttrNameEl(attrNameEl);
  TextElement valEl=uifactory.addTextElement("String_Node_Str" + i,null,256,"String_Node_Str",formLayout);
  valEl.setValue(rule.getUserAttributeValue());
  wrapper.setAttrValueEl(valEl);
  TextElement landingPageEl=uifactory.addTextElement("String_Node_Str" + i,null,256,"String_Node_Str",formLayout);
  landingPageEl.setValue(rule.getLandingPath());
  wrapper.setLandingPageEl(landingPageEl);
  formLayout.add(landingPageEl);
  DropdownItem chooser=new DropdownItem("String_Node_Str" + i,RCols.landingPageChooser.i18nKey(),getTranslator());
  chooser.setButton(true);
  chooser.setEmbbeded(true);
  fillChooser(wrapper,chooser,formLayout);
  wrapper.setLandingPageChooser(chooser);
  return wrapper;
}

Fixed version (ground truth):
private RuleWrapper initRuleWrapper(int pos,Rule rule,FormItemContainer formLayout){
  int i=counter.incrementAndGet();
  RuleWrapper wrapper=new RuleWrapper(rule);
  wrapper.setPosition(pos);
  SingleSelection roleEl=uifactory.addDropdownSingleselect("String_Node_Str" + i,null,formLayout,roleKeys,roleValues,null);
  String role=rule.getRole();
  for (int j=roleKeys.length; j-- > 0; ) {
    if (roleKeys[j].equals(role)) {
      roleEl.select(roleKeys[j],true);
    }
  }
  wrapper.setRoleEl(roleEl);
  SingleSelection attrNameEl=uifactory.addDropdownSingleselect("String_Node_Str" + i,null,formLayout,attrKeys,attrValues,null);
  String userAttributeKey=rule.getUserAttributeKey();
  for (int j=attrKeys.length; j-- > 0; ) {
    if (attrKeys[j].equals(userAttributeKey)) {
      attrNameEl.select(attrKeys[j],true);
    }
  }
  wrapper.setAttrNameEl(attrNameEl);
  TextElement valEl=uifactory.addTextElement("String_Node_Str" + i,null,256,"String_Node_Str",formLayout);
  valEl.setValue(rule.getUserAttributeValue());
  wrapper.setAttrValueEl(valEl);
  TextElement landingPageEl=uifactory.addTextElement("String_Node_Str" + i,null,256,"String_Node_Str",formLayout);
  landingPageEl.setValue(rule.getLandingPath());
  wrapper.setLandingPageEl(landingPageEl);
  formLayout.add(landingPageEl);
  FormLink chooser=uifactory.addFormLink("String_Node_Str" + i,"String_Node_Str",RCols.landingPageChooser.i18nKey(),null,formLayout,Link.BUTTON);
  chooser.setIconRightCSS("String_Node_Str");
  chooser.setUserObject(wrapper);
  wrapper.setLandingPageChooser(chooser);
  return wrapper;
}