Program: 139994
Project: 139994
Buggy source:
private void createBubbleOrGanttChart(final ScrolledForm form,final Composite composite,final ColumnSetMultiValueIndicator columnSetMultiValueIndicator){
  List<Composite> previewChartList=new ArrayList<Composite>();
  List<Column> bubOrGanttColumnList=new ArrayList<Column>();
  if (columnSetMultiValueIndicator instanceof CountAvgNullIndicator) {
    bubOrGanttColumnList=columnSetMultiValueIndicator.getNumericColumns();
  }
 else {
    bubOrGanttColumnList=columnSetMultiValueIndicator.getDateColumns();
  }
  for (  Column column : bubOrGanttColumnList) {
    final TdColumn tdColumn=(TdColumn)column;
    final ExpandableComposite exComp=toolkit.createExpandableComposite(composite,ExpandableComposite.TREE_NODE | ExpandableComposite.CLIENT_INDENT);
    exComp.setText(DefaultMessagesImpl.getString("String_Node_Str") + tdColumn.getName());
    exComp.setLayout(new GridLayout());
    exComp.setData(columnSetMultiValueIndicator);
    previewChartList.add(exComp);
    final Composite comp=toolkit.createComposite(exComp);
    comp.setLayout(new GridLayout(2,false));
    comp.setLayoutData(new GridData(GridData.FILL_BOTH));
    if (tdColumn != null) {
      IRunnableWithProgress rwp=new IRunnableWithProgress(){
        public void run(        final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
          monitor.beginTask(DefaultMessagesImpl.getString("String_Node_Str") + tdColumn.getName(),IProgressMonitor.UNKNOWN);
          Display.getDefault().asyncExec(new Runnable(){
            public void run(){
              HideSeriesPanel hideSeriesPanel=new HideSeriesPanel(columnSetMultiValueIndicator,tdColumn);
              if (hideSeriesPanel != null) {
                Composite frameComp=toolkit.createComposite(comp,SWT.EMBEDDED);
                frameComp.setLayout(new GridLayout());
                GridData gd=new GridData();
                gd.heightHint=300;
                gd.widthHint=600;
                frameComp.setLayoutData(gd);
                Frame frame=SWT_AWT.new_Frame(frameComp);
                frame.setLayout(new java.awt.BorderLayout());
                frame.add(hideSeriesPanel);
                frame.validate();
              }
            }
          }
);
          monitor.done();
        }
      }
;
      try {
        new ProgressMonitorDialog(getSite().getShell()).run(true,false,rwp);
      }
 catch (      Exception ex) {
        ex.printStackTrace();
      }
    }
    exComp.addExpansionListener(new ExpansionAdapter(){
      @Override public void expansionStateChanged(      ExpansionEvent e){
        getChartComposite().layout();
        form.reflow(true);
      }
    }
);
    exComp.setExpanded(true);
    exComp.setClient(comp);
  }
  if (!previewChartList.isEmpty()) {
    this.previewChartCompsites=previewChartList.toArray(new Composite[previewChartList.size()]);
  }
}

Fixed version (ground truth):
private void createBubbleOrGanttChart(final ScrolledForm form,final Composite composite,final ColumnSetMultiValueIndicator columnSetMultiValueIndicator){
  List<Composite> previewChartList=new ArrayList<Composite>();
  List<Column> bubOrGanttColumnList=new ArrayList<Column>();
  if (columnSetMultiValueIndicator instanceof CountAvgNullIndicator) {
    bubOrGanttColumnList=columnSetMultiValueIndicator.getNumericColumns();
  }
 else {
    bubOrGanttColumnList=columnSetMultiValueIndicator.getDateColumns();
  }
  for (  Column column : bubOrGanttColumnList) {
    final TdColumn tdColumn=(TdColumn)column;
    final ExpandableComposite exComp=toolkit.createExpandableComposite(composite,ExpandableComposite.TREE_NODE | ExpandableComposite.CLIENT_INDENT);
    exComp.setText(DefaultMessagesImpl.getString("String_Node_Str") + tdColumn.getName());
    exComp.setLayout(new GridLayout());
    exComp.setData(columnSetMultiValueIndicator);
    previewChartList.add(exComp);
    final Composite comp=toolkit.createComposite(exComp);
    comp.setLayout(new GridLayout(2,false));
    comp.setLayoutData(new GridData(GridData.FILL_BOTH));
    if (tdColumn != null) {
      IRunnableWithProgress rwp=new IRunnableWithProgress(){
        public void run(        final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
          monitor.beginTask(DefaultMessagesImpl.getString("String_Node_Str") + tdColumn.getName(),IProgressMonitor.UNKNOWN);
          Display.getDefault().asyncExec(new Runnable(){
            public void run(){
              HideSeriesChartComposite hcc=new HideSeriesChartComposite(comp,columnSetMultiValueIndicator,tdColumn,true);
              GridData gd=new GridData();
              gd.widthHint=900;
              gd.heightHint=450;
              hcc.setLayoutData(gd);
            }
          }
);
          monitor.done();
        }
      }
;
      try {
        new ProgressMonitorDialog(getSite().getShell()).run(true,false,rwp);
      }
 catch (      Exception ex) {
        ex.printStackTrace();
      }
    }
    exComp.addExpansionListener(new ExpansionAdapter(){
      @Override public void expansionStateChanged(      ExpansionEvent e){
        getChartComposite().layout();
        form.reflow(true);
      }
    }
);
    exComp.setExpanded(true);
    exComp.setClient(comp);
  }
  if (!previewChartList.isEmpty()) {
    this.previewChartCompsites=previewChartList.toArray(new Composite[previewChartList.size()]);
  }
}