Program: 138156
Project: 138156
Buggy source:
private TreeColumn[] createTreeColumns(Tree tree){
  tree.setHeaderVisible(true);
  TreeColumn[] treeColumn=null;
  if (this.allColumnsCountSize > 1 && !isUsePaging()) {
    treeColumn=new TreeColumn[allColumnsCountSize + 2];
    treeColumn[0]=new TreeColumn(tree,SWT.CENTER);
    treeColumn[0].setWidth(COL0_WIDTH);
    treeColumn[0].setText(DefaultMessagesImpl.getString("String_Node_Str"));
    treeColumn[1]=new TreeColumn(tree,SWT.CENTER);
    treeColumn[1].setWidth(COLI_WIDTH);
    treeColumn[1].setText(DefaultMessagesImpl.getString("String_Node_Str"));
    treeColumn[1].setToolTipText(DefaultMessagesImpl.getString("String_Node_Str"));
    for (int i=0; i < this.allColumnsCountSize; i++) {
      treeColumn[i + 2]=new TreeColumn(tree,SWT.CENTER);
      treeColumn[i + 2].setWidth(COLI_WIDTH);
      treeColumn[i + 2].setText(getResult()[i].getElementName());
      treeColumn[i + 2].setData(getResult()[i]);
      treeColumn[i + 2].setToolTipText(DefaultMessagesImpl.getString("String_Node_Str"));
      getResult()[i].copyOldIndicatorEnum();
    }
  }
 else   if (this.allColumnsCountSize > 1 && isUsePaging()) {
    int treeColumnSize=0;
    if (this.currentPage != this.totalPages) {
      treeColumnSize=this.pageSize;
    }
 else {
      treeColumnSize=this.allColumnsCountSize - (this.currentPage - 1) * this.pageSize;
    }
    treeColumn=new TreeColumn[treeColumnSize + 2];
    treeColumn[0]=new TreeColumn(tree,SWT.CENTER);
    treeColumn[0].setWidth(COL0_WIDTH);
    treeColumn[0].setText(DefaultMessagesImpl.getString("String_Node_Str"));
    treeColumn[1]=new TreeColumn(tree,SWT.CENTER);
    treeColumn[1].setWidth(COLI_WIDTH);
    treeColumn[1].setText(DefaultMessagesImpl.getString("String_Node_Str"));
    treeColumn[1].setToolTipText(DefaultMessagesImpl.getString("String_Node_Str"));
    for (int i=0; i < treeColumnSize; i++) {
      treeColumn[i + 2]=new TreeColumn(tree,SWT.CENTER);
      treeColumn[i + 2].setWidth(COLI_WIDTH);
      treeColumn[i + 2].setText(getResult()[(this.currentPage - 1) * this.pageSize + i].getElementName());
      treeColumn[i + 2].setData(getResult()[(this.currentPage - 1) * this.pageSize + i]);
      treeColumn[i + 2].setToolTipText(DefaultMessagesImpl.getString("String_Node_Str"));
      ModelElementIndicator modelElementIndicator=getResult()[(this.currentPage - 1) * this.pageSize + i];
      List<IndicatorEnum> tempIndicator=modelElementIndicator.getTempIndicator();
      if (null != tempIndicator && tempIndicator.isEmpty()) {
        modelElementIndicator.copyOldIndicatorEnum();
      }
    }
  }
 else {
    treeColumn=new TreeColumn[allColumnsCountSize + 1];
    treeColumn[0]=new TreeColumn(tree,SWT.CENTER);
    treeColumn[0].setWidth(COL0_WIDTH);
    treeColumn[0].setText(DefaultMessagesImpl.getString("String_Node_Str"));
    for (int i=0; i < this.allColumnsCountSize; i++) {
      treeColumn[i + 1]=new TreeColumn(tree,SWT.CENTER);
      treeColumn[i + 1].setWidth(COLI_WIDTH);
      treeColumn[i + 1].setText(getResult()[i].getElementName());
      treeColumn[i + 1].setData(getResult()[i]);
      getResult()[i].copyOldIndicatorEnum();
    }
  }
  return treeColumn;
}

Fixed version (ground truth):
private TreeColumn[] createTreeColumns(Tree tree){
  tree.setHeaderVisible(true);
  TreeColumn[] treeColumn=null;
  if (this.allColumnsCountSize > 1 && !isUsePaging()) {
    treeColumn=new TreeColumn[allColumnsCountSize + 2];
    treeColumn[0]=new TreeColumn(tree,SWT.CENTER);
    treeColumn[0].setWidth(COL0_WIDTH);
    treeColumn[0].setText(DefaultMessagesImpl.getString("String_Node_Str"));
    treeColumn[1]=new TreeColumn(tree,SWT.CENTER);
    treeColumn[1].setWidth(COLI_WIDTH);
    treeColumn[1].setText(DefaultMessagesImpl.getString("String_Node_Str"));
    treeColumn[1].setToolTipText(DefaultMessagesImpl.getString("String_Node_Str"));
    for (int i=0; i < this.allColumnsCountSize; i++) {
      treeColumn[i + 2]=new TreeColumn(tree,SWT.CENTER);
      treeColumn[i + 2].setWidth(COLI_WIDTH);
      treeColumn[i + 2].setText(getResult()[i].getElementName());
      treeColumn[i + 2].setData(getResult()[i]);
      treeColumn[i + 2].setToolTipText(DefaultMessagesImpl.getString("String_Node_Str"));
    }
  }
 else   if (this.allColumnsCountSize > 1 && isUsePaging()) {
    int treeColumnSize=0;
    if (this.currentPage != this.totalPages) {
      treeColumnSize=this.pageSize;
    }
 else {
      treeColumnSize=this.allColumnsCountSize - (this.currentPage - 1) * this.pageSize;
    }
    treeColumn=new TreeColumn[treeColumnSize + 2];
    treeColumn[0]=new TreeColumn(tree,SWT.CENTER);
    treeColumn[0].setWidth(COL0_WIDTH);
    treeColumn[0].setText(DefaultMessagesImpl.getString("String_Node_Str"));
    treeColumn[1]=new TreeColumn(tree,SWT.CENTER);
    treeColumn[1].setWidth(COLI_WIDTH);
    treeColumn[1].setText(DefaultMessagesImpl.getString("String_Node_Str"));
    treeColumn[1].setToolTipText(DefaultMessagesImpl.getString("String_Node_Str"));
    for (int i=0; i < treeColumnSize; i++) {
      treeColumn[i + 2]=new TreeColumn(tree,SWT.CENTER);
      treeColumn[i + 2].setWidth(COLI_WIDTH);
      treeColumn[i + 2].setText(getResult()[(this.currentPage - 1) * this.pageSize + i].getElementName());
      treeColumn[i + 2].setData(getResult()[(this.currentPage - 1) * this.pageSize + i]);
      treeColumn[i + 2].setToolTipText(DefaultMessagesImpl.getString("String_Node_Str"));
      ModelElementIndicator modelElementIndicator=getResult()[(this.currentPage - 1) * this.pageSize + i];
      List<IndicatorEnum> tempIndicator=modelElementIndicator.getTempIndicator();
    }
  }
 else {
    treeColumn=new TreeColumn[allColumnsCountSize + 1];
    treeColumn[0]=new TreeColumn(tree,SWT.CENTER);
    treeColumn[0].setWidth(COL0_WIDTH);
    treeColumn[0].setText(DefaultMessagesImpl.getString("String_Node_Str"));
    for (int i=0; i < this.allColumnsCountSize; i++) {
      treeColumn[i + 1]=new TreeColumn(tree,SWT.CENTER);
      treeColumn[i + 1].setWidth(COLI_WIDTH);
      treeColumn[i + 1].setText(getResult()[i].getElementName());
      treeColumn[i + 1].setData(getResult()[i]);
    }
  }
  return treeColumn;
}