Program: 16326
Project: 16326
Buggy source:
public void render(final Row row,final Object data){
  final Rows rows=(Rows)row.getParent();
  final Grid grid=(Grid)rows.getParent();
  final int index=row.getIndex();
  final Template tm=resoloveTemplate(grid,row,data,index,"String_Node_Str");
  if (tm == null) {
    final Label label=newRenderLabel(Objects.toString(data));
    label.applyProperties();
    label.setParent(row);
    row.setValue(data);
  }
 else {
    final String var=(String)tm.getParameters().get(EACH_ATTR);
    final String varnm=var == null ? EACH_VAR : var;
    final String itervar=(String)tm.getParameters().get(STATUS_ATTR);
    final String itervarnm=itervar == null ? varnm + STATUS_POST_VAR : itervar;
    final Component[] items=tm.create(rows,row,new VariableResolverX(){
      public Object resolveVariable(      String name){
        return varnm.equals(name) ? data : null;
      }
      public Object resolveVariable(      XelContext ctx,      Object base,      Object name) throws XelException {
        if (base == null) {
          if (varnm.equals(name)) {
            return data;
          }
 else           if (itervarnm.equals(name)) {
            return new AbstractIterationStatus(){
              private static final long serialVersionUID=1L;
              @Override public int getIndex(){
                return Integer.valueOf(index);
              }
            }
;
          }
        }
        return null;
      }
    }
,null);
    if (items.length != 1)     throw new UiException("String_Node_Str" + items.length);
    final Row nr=(Row)items[0];
    nr.setAttribute(BinderImpl.VAR,varnm);
    nr.setAttribute(varnm,data);
    nr.setAttribute(itervarnm,new AbstractIterationStatus(){
      private static final long serialVersionUID=1L;
      @Override public int getIndex(){
        return Integer.valueOf(index);
      }
    }
);
    addTemplateDependency(grid,nr,data,index);
    if (nr.getValue() == null)     nr.setValue(data);
    row.setAttribute("String_Node_Str",nr);
    row.detach();
  }
}

Fixed version (ground truth):
public void render(final Row row,final Object data){
  final Rows rows=(Rows)row.getParent();
  final Grid grid=(Grid)rows.getParent();
  final int index=row.getIndex();
  final Template tm=resoloveTemplate(grid,row,data,index,"String_Node_Str");
  if (tm == null) {
    final Label label=newRenderLabel(Objects.toString(data));
    label.applyProperties();
    label.setParent(row);
    row.setValue(data);
  }
 else {
    final String var=(String)tm.getParameters().get(EACH_ATTR);
    final String varnm=var == null ? EACH_VAR : var;
    final String itervar=(String)tm.getParameters().get(STATUS_ATTR);
    final String itervarnm=itervar == null ? varnm + STATUS_POST_VAR : itervar;
    final Component[] items=tm.create(rows,row,new VariableResolverX(){
      public Object resolveVariable(      String name){
        return varnm.equals(name) ? data : null;
      }
      public Object resolveVariable(      XelContext ctx,      Object base,      Object name) throws XelException {
        if (base == null) {
          if (varnm.equals(name)) {
            return data;
          }
 else           if (itervarnm.equals(name)) {
            return new AbstractIterationStatus(){
              private static final long serialVersionUID=1L;
              @Override public int getIndex(){
                return Integer.valueOf(index);
              }
            }
;
          }
        }
        return null;
      }
    }
,null);
    if (items.length != 1)     throw new UiException("String_Node_Str" + items.length);
    final Row nr=(Row)items[0];
    nr.setAttribute(BinderImpl.VAR,varnm);
    addItemReference(nr,index,varnm);
    nr.setAttribute(itervarnm,new AbstractIterationStatus(){
      private static final long serialVersionUID=1L;
      @Override public int getIndex(){
        return Integer.valueOf(index);
      }
    }
);
    addTemplateTracking(grid,nr,data,index);
    if (nr.getValue() == null)     nr.setValue(data);
    row.setAttribute("String_Node_Str",nr);
    row.detach();
  }
}