Program: 71931
Project: 71931
Buggy source:
/** 
 * Creates the dialog area.
 * @param parent The parent
 */
protected Control createDialogArea(Composite parent){
  parent.setBackground(new Color(null,219,228,238));
  Composite composite=(Composite)super.createDialogArea(parent);
  GridData gd=new GridData();
  gd.widthHint=520;
  gd.heightHint=395;
  composite.setLayoutData(gd);
  GridLayout layout=new GridLayout();
  layout.numColumns=1;
  layout.verticalSpacing=0;
  layout.horizontalSpacing=0;
  layout.marginHeight=0;
  layout.marginWidth=0;
  composite.setLayout(layout);
  browser=new Browser(composite,SWT.NONE);
  gd=new GridData(GridData.FILL_BOTH);
  gd.horizontalSpan=1;
  browser.setLayoutData(gd);
  browser.addCloseWindowListener(new CloseWindowListener(){
    public void close(    final WindowEvent event){
      ((Browser)event.widget).getShell().close();
      List parameters=SessionHandleAdapter.getInstance().getReportDesignHandle().getParameters().getContents();
      if (parameters != null && parameters.size() > 0) {
        setReturnCode(RETURN_CODE_BROWSER_CLOSED);
      }
    }
  }
);
  browser.addStatusTextListener(new StatusTextListener(){
    public void changed(    StatusTextEvent event){
      if (STATUS_CLOSE.equalsIgnoreCase(event.text)) {
        ((Browser)event.widget).getShell().close();
        List parameters=SessionHandleAdapter.getInstance().getReportDesignHandle().getParameters().getContents();
        if (parameters != null && parameters.size() > 0) {
          setReturnCode(RETURN_CODE_BROWSER_CLOSED);
        }
      }
 else       if (STATUS_CANCEL.equalsIgnoreCase(event.text)) {
        ((Browser)event.widget).getShell().close();
      }
    }
  }
);
  display();
  return composite;
}

Fixed version (ground truth):
/** 
 * Creates the dialog area.
 * @param parent The parent
 */
protected Control createDialogArea(Composite parent){
  parent.setBackground(ColorManager.getColor(219,228,238));
  Composite composite=(Composite)super.createDialogArea(parent);
  GridData gd=new GridData();
  gd.widthHint=520;
  gd.heightHint=395;
  composite.setLayoutData(gd);
  GridLayout layout=new GridLayout();
  layout.numColumns=1;
  layout.verticalSpacing=0;
  layout.horizontalSpacing=0;
  layout.marginHeight=0;
  layout.marginWidth=0;
  composite.setLayout(layout);
  browser=new Browser(composite,SWT.NONE);
  gd=new GridData(GridData.FILL_BOTH);
  gd.horizontalSpan=1;
  browser.setLayoutData(gd);
  browser.addCloseWindowListener(new CloseWindowListener(){
    public void close(    final WindowEvent event){
      ((Browser)event.widget).getShell().close();
      List parameters=SessionHandleAdapter.getInstance().getReportDesignHandle().getParameters().getContents();
      if (parameters != null && parameters.size() > 0) {
        setReturnCode(RETURN_CODE_BROWSER_CLOSED);
      }
    }
  }
);
  browser.addStatusTextListener(new StatusTextListener(){
    public void changed(    StatusTextEvent event){
      if (STATUS_CLOSE.equalsIgnoreCase(event.text)) {
        ((Browser)event.widget).getShell().close();
        List parameters=SessionHandleAdapter.getInstance().getReportDesignHandle().getParameters().getContents();
        if (parameters != null && parameters.size() > 0) {
          setReturnCode(RETURN_CODE_BROWSER_CLOSED);
        }
      }
 else       if (STATUS_CANCEL.equalsIgnoreCase(event.text)) {
        ((Browser)event.widget).getShell().close();
      }
    }
  }
);
  display();
  return composite;
}