Program: 67752
Project: 67752
Buggy source:
@Override public Composite createDataSelector(Composite parent){
  parentComposite=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;
}

Fixed version (ground truth):
@Override public Composite createDataSelector(Composite parent){
  parentComposite=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 DataItemCombo(cmpDetail,SWT.DROP_DOWN | SWT.READ_ONLY | SWT.BORDER){
    @Override public boolean triggerSelection(    int index){
      int selectState=selectDataTypes.get(index).intValue();
      if (selectState == SELECT_NEW_DATASET || selectState == SELECT_NEW_DATACUBE) {
        return false;
      }
      return true;
    }
    @Override public boolean skipSelection(    int index){
      int selectState=selectDataTypes.get(index).intValue();
      if (selectState == SELECT_NEXT) {
        return true;
      }
      return false;
    }
  }
;
  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;
}