Program: 118300
Project: 118300
Buggy source:
public void init(MapperModel mapperModel){
  final UIManager uiManager=mapperManager.getUiManager();
  final ExternalDbMapUiProperties uiProperties=uiManager.getUiProperties();
  addParentListeners(uiManager,uiProperties);
  final Display display=mapperUIParent.getDisplay();
  bgColorLinksZone=ColorProviderMapper.getColor(ColorInfo.COLOR_BACKGROUND_LINKS_ZONE);
  GridLayout parentLayout=new GridLayout(1,true);
  mapperUIParent.setLayout(parentLayout);
  addKeyListener(uiManager,display);
  addBackgroundRefreshLimiters(display);
  this.dropTargetOperationListener=new DropTargetOperationListener(mapperManager);
  dropTargetOperationListener.addControl(this.mapperUIParent.getShell());
  mainSashForm=new SashForm(mapperUIParent,SWT.SMOOTH | SWT.VERTICAL);
  GridData mainSashFormGridData=new GridData(GridData.FILL_BOTH);
  mainSashForm.setLayoutData(mainSashFormGridData);
  datasFlowViewSashForm=new SashForm(mainSashForm,SWT.SMOOTH | SWT.HORIZONTAL | SWT.BORDER);
  datasFlowViewSashForm.setBackgroundMode(SWT.INHERIT_FORCE);
  initBackgroundComponents();
  if (WindowSystem.isGTK()) {
    datasFlowViewSashForm.setBackground(display.getSystemColor(SWT.COLOR_DARK_GRAY));
  }
  tabFolderEditors=new TabFolderEditors(mainSashForm,SWT.BORDER,mapperManager);
  createInputZoneWithTables(mapperModel,uiManager,display);
  createVarsZoneWithTables(mapperModel,display);
  createOutputZoneWithTables(mapperModel,uiManager,display);
  mapperManager.initInternalData();
  uiManager.parseAllExpressionsForAllTables();
  mapperManager.getProblemsManager().checkProblemsForAllEntriesOfAllTables(true);
  this.draggingInfosPopup=DraggingInfosPopup.getNewShell(this.mapperUIParent.getShell());
  configureZoneScrollBars(display);
  int[] weightsDatasFlowViewSashForm=uiProperties.getWeightsDatasFlowViewSashForm();
  datasFlowViewSashForm.setWeights(weightsDatasFlowViewSashForm.length != 0 ? weightsDatasFlowViewSashForm : ExternalDbMapUiProperties.DEFAULT_WEIGHTS_DATAS_FLOW_SASH_FORM);
  int[] weightsMainSashForm=uiProperties.getWeightsMainSashForm();
  mainSashForm.setWeights(weightsMainSashForm.length != 0 ? weightsMainSashForm : ExternalDbMapUiProperties.DEFAULT_WEIGHTS_MAIN_SASH_FORM);
  new FooterComposite(this.mapperUIParent,SWT.NONE,mapperManager);
  if (WindowSystem.isGTK()) {
    new AsynchronousThreading(1000,false,display,new Runnable(){
      public void run(){
        resizeNotMinimizedTablesAtExpandedSize(display);
        mapperUIParent.getShell().layout();
      }
    }
).start();
  }
  if (WindowSystem.isWIN32()) {
    List<DataMapTableView> inputsTablesView=uiManager.getInputsTablesView();
    for (    DataMapTableView view : inputsTablesView) {
      ((InputDataMapTableView)view).refreshLabelForJoinDropDown();
    }
  }
  selectFirstInOutTablesView();
  mapperManager.getUiManager().refreshSqlExpression();
}

Fixed version (ground truth):
public void init(MapperModel mapperModel){
  final UIManager uiManager=mapperManager.getUiManager();
  final ExternalDbMapUiProperties uiProperties=uiManager.getUiProperties();
  addParentListeners(uiManager,uiProperties);
  final Display display=mapperUIParent.getDisplay();
  bgColorLinksZone=ColorProviderMapper.getColor(ColorInfo.COLOR_BACKGROUND_LINKS_ZONE);
  GridLayout parentLayout=new GridLayout(1,true);
  mapperUIParent.setLayout(parentLayout);
  addKeyListener(uiManager,display);
  addBackgroundRefreshLimiters(display);
  this.dropTargetOperationListener=new DropTargetOperationListener(mapperManager);
  dropTargetOperationListener.addControl(this.mapperUIParent.getShell());
  mainSashForm=new SashForm(mapperUIParent,SWT.SMOOTH | SWT.VERTICAL);
  GridData mainSashFormGridData=new GridData(GridData.FILL_BOTH);
  mainSashForm.setLayoutData(mainSashFormGridData);
  datasFlowViewSashForm=new SashForm(mainSashForm,SWT.SMOOTH | SWT.HORIZONTAL | SWT.BORDER);
  datasFlowViewSashForm.setBackgroundMode(SWT.INHERIT_FORCE);
  initBackgroundComponents();
  if (WindowSystem.isGTK()) {
    datasFlowViewSashForm.setBackground(display.getSystemColor(SWT.COLOR_DARK_GRAY));
  }
  String dbmsId=null;
  if (mapperModel.getInputDataMapTables() != null && !mapperModel.getInputDataMapTables().isEmpty()) {
    InputTable input=mapperModel.getInputDataMapTables().get(0);
    if (input.getMetadataTable() != null) {
      dbmsId=input.getMetadataTable().getDbms();
    }
  }
  tabFolderEditors=new TabFolderEditors(mainSashForm,SWT.BORDER,mapperManager,dbmsId);
  createInputZoneWithTables(mapperModel,uiManager,display);
  createVarsZoneWithTables(mapperModel,display);
  createOutputZoneWithTables(mapperModel,uiManager,display);
  mapperManager.initInternalData();
  uiManager.parseAllExpressionsForAllTables();
  mapperManager.getProblemsManager().checkProblemsForAllEntriesOfAllTables(true);
  this.draggingInfosPopup=DraggingInfosPopup.getNewShell(this.mapperUIParent.getShell());
  configureZoneScrollBars(display);
  int[] weightsDatasFlowViewSashForm=uiProperties.getWeightsDatasFlowViewSashForm();
  datasFlowViewSashForm.setWeights(weightsDatasFlowViewSashForm.length != 0 ? weightsDatasFlowViewSashForm : ExternalDbMapUiProperties.DEFAULT_WEIGHTS_DATAS_FLOW_SASH_FORM);
  int[] weightsMainSashForm=uiProperties.getWeightsMainSashForm();
  mainSashForm.setWeights(weightsMainSashForm.length != 0 ? weightsMainSashForm : ExternalDbMapUiProperties.DEFAULT_WEIGHTS_MAIN_SASH_FORM);
  new FooterComposite(this.mapperUIParent,SWT.NONE,mapperManager);
  if (WindowSystem.isGTK()) {
    new AsynchronousThreading(1000,false,display,new Runnable(){
      public void run(){
        resizeNotMinimizedTablesAtExpandedSize(display);
        mapperUIParent.getShell().layout();
      }
    }
).start();
  }
  if (WindowSystem.isWIN32()) {
    List<DataMapTableView> inputsTablesView=uiManager.getInputsTablesView();
    for (    DataMapTableView view : inputsTablesView) {
      ((InputDataMapTableView)view).refreshLabelForJoinDropDown();
    }
  }
  selectFirstInOutTablesView();
  mapperManager.getUiManager().refreshSqlExpression();
}