Program: 68476
Project: 68476
Buggy source:
public Composite createDataSelector(Composite parent){
  Composite cmpDataSet=ChartUIUtil.createCompositeWrapper(parent);
{
    cmpDataSet.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  }
  Label label=new Label(cmpDataSet,SWT.NONE);
{
    label.setText(Messages.getString("String_Node_Str"));
    label.setFont(JFaceResources.getBannerFont());
  }
  Composite cmpDetail=new Composite(cmpDataSet,SWT.NONE);
{
    GridLayout gridLayout=new GridLayout(2,false);
    gridLayout.marginWidth=10;
    gridLayout.marginHeight=0;
    cmpDetail.setLayout(gridLayout);
    cmpDetail.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  }
  Composite compRadios=ChartUIUtil.createCompositeWrapper(cmpDetail);
{
    GridData gd=new GridData();
    gd.verticalSpan=2;
    compRadios.setLayoutData(gd);
  }
  btnInherit=new Button(compRadios,SWT.RADIO);
  btnInherit.setText(Messages.getString("String_Node_Str"));
  btnInherit.addListener(SWT.Selection,this);
  btnUseData=new Button(compRadios,SWT.RADIO);
  btnUseData.setText(Messages.getString("String_Node_Str"));
  btnUseData.addListener(SWT.Selection,this);
  cmbInherit=new CCombo(cmpDetail,SWT.DROP_DOWN | SWT.READ_ONLY | SWT.BORDER);
  cmbInherit.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  cmbInherit.addListener(SWT.Selection,this);
  cmbDataItems=new CCombo(cmpDetail,SWT.DROP_DOWN | SWT.READ_ONLY | SWT.BORDER);
  cmbDataItems.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  cmbDataItems.addListener(SWT.Selection,this);
  cmbDataItems.setVisibleItemCount(30);
  initDataSelector();
  updatePredefinedQueries();
  checkColBindingForCube();
  if (dataProvider.checkState(IDataServiceProvider.IN_MULTI_VIEWS)) {
    autoSelect(false);
  }
  return cmpDataSet;
}

Fixed version (ground truth):
public Composite createDataSelector(Composite parent){
  if (itemHandle.getDataBindingType() == ReportItemHandle.DATABINDING_TYPE_NONE && itemHandle.getContainer() instanceof ModuleHandle) {
    String[] dataSets=dataProvider.getAllDataSets();
    if (dataProvider.getAllDataCubes().length == 0 && dataSets.length == 1) {
      dataProvider.setDataSet(dataSets[0]);
    }
  }
  Composite cmpDataSet=ChartUIUtil.createCompositeWrapper(parent);
{
    cmpDataSet.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  }
  Label label=new Label(cmpDataSet,SWT.NONE);
{
    label.setText(Messages.getString("String_Node_Str"));
    label.setFont(JFaceResources.getBannerFont());
  }
  Composite cmpDetail=new Composite(cmpDataSet,SWT.NONE);
{
    GridLayout gridLayout=new GridLayout(2,false);
    gridLayout.marginWidth=10;
    gridLayout.marginHeight=0;
    cmpDetail.setLayout(gridLayout);
    cmpDetail.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  }
  Composite compRadios=ChartUIUtil.createCompositeWrapper(cmpDetail);
{
    GridData gd=new GridData();
    gd.verticalSpan=2;
    compRadios.setLayoutData(gd);
  }
  btnInherit=new Button(compRadios,SWT.RADIO);
  btnInherit.setText(Messages.getString("String_Node_Str"));
  btnInherit.addListener(SWT.Selection,this);
  btnUseData=new Button(compRadios,SWT.RADIO);
  btnUseData.setText(Messages.getString("String_Node_Str"));
  btnUseData.addListener(SWT.Selection,this);
  cmbInherit=new CCombo(cmpDetail,SWT.DROP_DOWN | SWT.READ_ONLY | SWT.BORDER);
  cmbInherit.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  cmbInherit.addListener(SWT.Selection,this);
  cmbDataItems=new CCombo(cmpDetail,SWT.DROP_DOWN | SWT.READ_ONLY | SWT.BORDER);
  cmbDataItems.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  cmbDataItems.addListener(SWT.Selection,this);
  cmbDataItems.setVisibleItemCount(30);
  initDataSelector();
  updatePredefinedQueries();
  checkColBindingForCube();
  if (dataProvider.checkState(IDataServiceProvider.IN_MULTI_VIEWS)) {
    autoSelect(false);
  }
  return cmpDataSet;
}