Program: 143712
Project: 143712
Buggy source:
private void setUpComponent(Component comp,IRecordInternal record,Object compColor,Object fgColor,Object compFont,int visibleRowIndex){
  if (tabIndex < 0) {
    TabIndexHelper.setUpTabIndexAttributeModifier(comp,tabIndex);
  }
 else {
    if (elementTabIndexes.size() > 0) {
      Integer idx=elementTabIndexes.get(cellToElement.get(comp));
      if (idx == null) {
        TabIndexHelper.setUpTabIndexAttributeModifier(comp,ISupportWebTabSeq.SKIP);
      }
 else {
        TabIndexHelper.setUpTabIndexAttributeModifier(comp,tabIndex + 1 + visibleRowIndex * elementTabIndexes.size() + idx.intValue());
      }
    }
 else {
      TabIndexHelper.setUpTabIndexAttributeModifier(comp,tabIndex + 1);
    }
  }
  if (compColor != null) {
    MarkupContainer cellContainer=comp.getParent();
    if (cellContainer instanceof CellContainer) {
      cellContainer.add(new StyleAppendingModifier(new Model<String>("String_Node_Str" + compColor.toString())));
    }
    comp.add(new StyleAppendingModifier(new Model<String>("String_Node_Str" + compColor.toString())));
  }
  if (fgColor != null) {
    comp.add(new StyleAppendingModifier(new Model<String>("String_Node_Str" + fgColor.toString())));
  }
  if (compFont != null) {
    Pair<String,String> fontProps[]=PersistHelper.createFontCSSProperties(compFont.toString());
    for (    Pair<String,String> fontProp : fontProps) {
      if (fontProp != null) {
        comp.add(new StyleAppendingModifier(new Model<String>(new StringBuilder(fontProp.getLeft()).append("String_Node_Str").append(fontProp.getRight()).toString())));
      }
    }
  }
  if (scriptable.js_isReadOnly() && validationEnabled && comp instanceof IScriptableProvider&& ((IScriptableProvider)comp).getScriptObject() instanceof IScriptReadOnlyMethods) {
    ((IScriptReadOnlyMethods)((IScriptableProvider)comp).getScriptObject()).js_setReadOnly(true);
  }
  if (!isEnabled() && comp instanceof IComponent) {
    ((IComponent)comp).setComponentEnabled(false);
  }
  if (comp instanceof IDisplayRelatedData && record != null) {
    ((IDisplayRelatedData)comp).setRecord(record,true);
  }
  MarkupContainer parent=comp.getParent();
  if (parent instanceof CellContainer) {
    parent.setVisible(comp.isVisible());
  }
}

Fixed version (ground truth):
private void setUpComponent(Component comp,IRecordInternal record,Object compColor,Object fgColor,Object compFont,int visibleRowIndex){
  if (tabIndex < 0) {
    TabIndexHelper.setUpTabIndexAttributeModifier(comp,tabIndex);
  }
 else {
    if (elementTabIndexes.size() > 0) {
      Integer idx=elementTabIndexes.get(cellToElement.get(comp));
      if (idx == null) {
        TabIndexHelper.setUpTabIndexAttributeModifier(comp,ISupportWebTabSeq.SKIP);
      }
 else {
        TabIndexHelper.setUpTabIndexAttributeModifier(comp,tabIndex + 1 + visibleRowIndex * elementTabIndexes.size() + idx.intValue());
      }
    }
 else {
      TabIndexHelper.setUpTabIndexAttributeModifier(comp,tabIndex + 1);
    }
  }
  if (compColor != null) {
    MarkupContainer cellContainer=comp.getParent();
    String compColorStr=compColor.toString();
    if (cellContainer instanceof CellContainer) {
      cellContainer.add(new StyleAppendingModifier(new Model<String>("String_Node_Str" + compColorStr)));
    }
  }
  WebCellBasedView.this.applyStyleOnComponent(comp,compColor,fgColor,compFont);
  if (scriptable.js_isReadOnly() && validationEnabled && comp instanceof IScriptableProvider&& ((IScriptableProvider)comp).getScriptObject() instanceof IScriptReadOnlyMethods) {
    ((IScriptReadOnlyMethods)((IScriptableProvider)comp).getScriptObject()).js_setReadOnly(true);
  }
  if (!isEnabled() && comp instanceof IComponent) {
    ((IComponent)comp).setComponentEnabled(false);
  }
  if (comp instanceof IDisplayRelatedData && record != null) {
    ((IDisplayRelatedData)comp).setRecord(record,true);
  }
  MarkupContainer parent=comp.getParent();
  if (parent instanceof CellContainer) {
    parent.setVisible(comp.isVisible());
  }
}