Program: 95846
Project: 95846
Buggy source:
/** 
 * fill result node
 * @param keyword ITestResultPO
 * @param resultNode ITestResultPO
 */
private void fillNode(ITestResultPO keyword,TestResultNode resultNode){
  INodePO node=resultNode.getNode();
  keyword.setKeywordName(node.getName());
  keyword.setInternalKeywordGuid(node.getGuid());
  keyword.setKeywordComment(node.getComment());
  keyword.setTaskId(node.getTaskId());
  keyword.setInternalKeywordStatus(resultNode.getStatus());
  keyword.setKeywordStatus(resultNode.getStatusString());
  if (resultNode.getTimeStamp() != null) {
    keyword.setTimestamp(resultNode.getTimeStamp());
  }
  if (resultNode.getParent() != null) {
    keyword.setInternalParentKeywordID(resultNode.getParent().getNode().getId());
  }
  if (node instanceof IParameterInterfacePO) {
    addParameterListToResult(keyword,resultNode,(IParameterInterfacePO)node);
  }
  keyword.setKeywordType(resultNode.getTypeOfNode());
  if (node instanceof ICapPO) {
    keyword.setInternalKeywordType(TYPE_TEST_STEP);
    ICapPO cap=(ICapPO)node;
    String compNameGuid=cap.getComponentName();
    keyword.setInternalComponentNameGuid(compNameGuid);
    keyword.setComponentName(StringUtils.defaultString(resultNode.getComponentName()));
    keyword.setInternalComponentType(cap.getComponentType());
    keyword.setComponentType(CompSystemI18n.getString(cap.getComponentType()));
    keyword.setInternalActionName(cap.getActionName());
    keyword.setActionName(CompSystemI18n.getString(cap.getActionName()));
    addErrorDetails(keyword,resultNode);
    keyword.setNoOfSimilarComponents(resultNode.getNoOfSimilarComponents());
    keyword.setOmHeuristicEquivalence(resultNode.getOmHeuristicEquivalence());
  }
 else   if (node instanceof ITestCasePO) {
    keyword.setInternalKeywordType(TYPE_TEST_CASE);
  }
 else   if (node instanceof ITestSuitePO) {
    keyword.setInternalKeywordType(TYPE_TEST_SUITE);
  }
}

Fixed version (ground truth):
/** 
 * fill result node
 * @param keyword ITestResultPO
 * @param resultNode ITestResultPO
 */
private void fillNode(ITestResultPO keyword,TestResultNode resultNode){
  INodePO node=resultNode.getNode();
  keyword.setKeywordName(node.getName());
  keyword.setInternalKeywordGuid(node.getGuid());
  keyword.setKeywordComment(node.getComment());
  keyword.setTaskId(resultNode.getTaskId());
  keyword.setInternalKeywordStatus(resultNode.getStatus());
  keyword.setKeywordStatus(resultNode.getStatusString());
  if (resultNode.getTimeStamp() != null) {
    keyword.setTimestamp(resultNode.getTimeStamp());
  }
  if (resultNode.getParent() != null) {
    keyword.setInternalParentKeywordID(resultNode.getParent().getNode().getId());
  }
  if (node instanceof IParameterInterfacePO) {
    addParameterListToResult(keyword,resultNode,(IParameterInterfacePO)node);
  }
  keyword.setKeywordType(resultNode.getTypeOfNode());
  if (node instanceof ICapPO) {
    keyword.setInternalKeywordType(TYPE_TEST_STEP);
    ICapPO cap=(ICapPO)node;
    String compNameGuid=cap.getComponentName();
    keyword.setInternalComponentNameGuid(compNameGuid);
    keyword.setComponentName(StringUtils.defaultString(resultNode.getComponentName()));
    keyword.setInternalComponentType(cap.getComponentType());
    keyword.setComponentType(CompSystemI18n.getString(cap.getComponentType()));
    keyword.setInternalActionName(cap.getActionName());
    keyword.setActionName(CompSystemI18n.getString(cap.getActionName()));
    addErrorDetails(keyword,resultNode);
    keyword.setNoOfSimilarComponents(resultNode.getNoOfSimilarComponents());
    keyword.setOmHeuristicEquivalence(resultNode.getOmHeuristicEquivalence());
  }
 else   if (node instanceof ITestCasePO) {
    keyword.setInternalKeywordType(TYPE_TEST_CASE);
  }
 else   if (node instanceof ITestSuitePO) {
    keyword.setInternalKeywordType(TYPE_TEST_SUITE);
  }
}