Program: 139801
Project: 139801
Buggy source:
protected void addPages(){
switch (analysisType) {
case COLUMN_CORRELATION:
    masterPage=new ColumnCorrelationNominalAndIntervalMasterPage(this,MASTER_PAGE,ANALYSIS_SETTINGS);
  setPartName(DefaultMessagesImpl.getString("String_Node_Str"));
resultPage=new ColumnCorrelationNominalIntervalResultPage(this,SECOND_PAGE,ANALYSIS_RESULTS);
try {
addPage(masterPage);
addPage(resultPage);
}
 catch (PartInitException e) {
ExceptionHandler.process(e,Level.ERROR);
}
break;
case MULTIPLE_COLUMN:
masterPage=new ColumnMasterDetailsPage(this,MASTER_PAGE,ANALYSIS_SETTINGS);
setPartName(DefaultMessagesImpl.getString("String_Node_Str"));
resultPage=new ColumnAnalysisResultPage(this,SECOND_PAGE,ANALYSIS_RESULTS);
try {
addPage(masterPage);
addPage(resultPage);
}
 catch (PartInitException e) {
ExceptionHandler.process(e,Level.ERROR);
}
break;
case CONNECTION:
masterPage=new ConnectionMasterDetailsPage(this,MASTER_PAGE,ANALYSIS_SETTINGS);
setPartName(DefaultMessagesImpl.getString("String_Node_Str"));
try {
addPage(masterPage);
}
 catch (PartInitException e) {
ExceptionHandler.process(e,Level.ERROR);
}
break;
case CATALOG:
masterPage=new CatalogMasterDetailsPage(this,MASTER_PAGE,ANALYSIS_SETTINGS);
setPartName(DefaultMessagesImpl.getString("String_Node_Str"));
try {
addPage(masterPage);
}
 catch (PartInitException e) {
ExceptionHandler.process(e,Level.ERROR);
}
break;
case SCHEMA:
masterPage=new SchemaAnalysisMasterDetailsPage(this,MASTER_PAGE,ANALYSIS_SETTINGS);
setPartName(DefaultMessagesImpl.getString("String_Node_Str"));
try {
addPage(masterPage);
}
 catch (PartInitException e) {
ExceptionHandler.process(e,Level.ERROR);
}
break;
case COLUMNS_COMPARISON:
masterPage=new ColumnsComparisonMasterDetailsPage(this,MASTER_PAGE,DefaultMessagesImpl.getString("String_Node_Str"));
setPartName(DefaultMessagesImpl.getString("String_Node_Str"));
resultPage=new ColumnsComparisonAnalysisResultPage(this,SECOND_PAGE,ANALYSIS_RESULTS);
try {
addPage(masterPage);
addPage(resultPage);
}
 catch (PartInitException e) {
ExceptionHandler.process(e,Level.ERROR);
}
break;
case TABLE:
masterPage=new TableMasterDetailsPage(this,MASTER_PAGE,ANALYSIS_SETTINGS);
setPartName(DefaultMessagesImpl.getString("String_Node_Str"));
resultPage=new TableAnalysisResultPage(this,SECOND_PAGE,ANALYSIS_RESULTS);
try {
addPage(masterPage);
addPage(resultPage);
}
 catch (PartInitException e) {
ExceptionHandler.process(e,Level.ERROR);
}
break;
default :
}
TdEditorToolBar toolbar=getToolBar();
if (toolbar != null && masterPage != null) {
runAction=new RunAnalysisAction(masterPage);
refreshAction=new RefreshChartAction();
toolbar.addActions(runAction,refreshAction);
}
}

Fixed version (ground truth):
protected void addPages(){
switch (analysisType) {
case COLUMN_CORRELATION:
    masterPage=new ColumnCorrelationNominalAndIntervalMasterPage(this,MASTER_PAGE,ANALYSIS_SETTINGS);
  setPartName(DefaultMessagesImpl.getString("String_Node_Str"));
resultPage=new ColumnCorrelationNominalIntervalResultPage(this,SECOND_PAGE,ANALYSIS_RESULTS);
try {
addPage(masterPage);
addPage(resultPage);
}
 catch (PartInitException e) {
ExceptionHandler.process(e,Level.ERROR);
}
break;
case MULTIPLE_COLUMN:
masterPage=new ColumnMasterDetailsPage(this,MASTER_PAGE,ANALYSIS_SETTINGS);
setPartName(DefaultMessagesImpl.getString("String_Node_Str"));
resultPage=new ColumnAnalysisResultPage(this,SECOND_PAGE,ANALYSIS_RESULTS);
try {
addPage(masterPage);
addPage(resultPage);
}
 catch (PartInitException e) {
ExceptionHandler.process(e,Level.ERROR);
}
break;
case CONNECTION:
masterPage=new ConnectionMasterDetailsPage(this,MASTER_PAGE,ANALYSIS_SETTINGS);
setPartName(DefaultMessagesImpl.getString("String_Node_Str"));
try {
addPage(masterPage);
}
 catch (PartInitException e) {
ExceptionHandler.process(e,Level.ERROR);
}
break;
case CATALOG:
masterPage=new CatalogMasterDetailsPage(this,MASTER_PAGE,ANALYSIS_SETTINGS);
setPartName(DefaultMessagesImpl.getString("String_Node_Str"));
try {
addPage(masterPage);
}
 catch (PartInitException e) {
ExceptionHandler.process(e,Level.ERROR);
}
break;
case SCHEMA:
masterPage=new SchemaAnalysisMasterDetailsPage(this,MASTER_PAGE,ANALYSIS_SETTINGS);
setPartName(DefaultMessagesImpl.getString("String_Node_Str"));
try {
addPage(masterPage);
}
 catch (PartInitException e) {
ExceptionHandler.process(e,Level.ERROR);
}
break;
case COLUMNS_COMPARISON:
masterPage=new ColumnsComparisonMasterDetailsPage(this,MASTER_PAGE,DefaultMessagesImpl.getString("String_Node_Str"));
setPartName(DefaultMessagesImpl.getString("String_Node_Str"));
resultPage=new ColumnsComparisonAnalysisResultPage(this,SECOND_PAGE,ANALYSIS_RESULTS);
try {
addPage(masterPage);
addPage(resultPage);
}
 catch (PartInitException e) {
ExceptionHandler.process(e,Level.ERROR);
}
break;
case TABLE:
masterPage=new TableMasterDetailsPage(this,MASTER_PAGE,ANALYSIS_SETTINGS);
setPartName(DefaultMessagesImpl.getString("String_Node_Str"));
resultPage=new TableAnalysisResultPage(this,SECOND_PAGE,ANALYSIS_RESULTS);
try {
addPage(masterPage);
addPage(resultPage);
}
 catch (PartInitException e) {
ExceptionHandler.process(e,Level.ERROR);
}
break;
default :
}
TdEditorToolBar toolbar=getToolBar();
if (toolbar != null && masterPage != null) {
runAction=new RunAnalysisAction();
refreshAction=new RefreshChartAction();
toolbar.addActions(runAction,refreshAction);
}
}