Program: 119640
Project: 119640
Buggy source:
/** 
 * Constructs a new LoginComposite.
 * @param parent Parent component.
 * @param style Style bits.
 */
public LoginComposite(Composite parent,int style,LoginDialog dialog,boolean inuse,TOSLoginComposite tosLoginComposite,StackLayout stackLayout){
  super(parent,style);
  this.parent=parent;
  this.dialog=dialog;
  this.inuse=inuse;
  this.tosLoginComposite=tosLoginComposite;
  this.stackLayout=stackLayout;
  perReader=ConnectionUserPerReader.getInstance();
  GridLayout layout=new GridLayout();
  layout.marginHeight=0;
  layout.marginWidth=0;
  setLayout(layout);
  toolkit=new FormToolkit(this.getDisplay());
  Form form=toolkit.createForm(this);
  formBody=form.getBody();
  formBody.setBackgroundMode(SWT.INHERIT_DEFAULT);
  GridData formBodyGd=new GridData(GridData.FILL_BOTH);
  form.setLayoutData(formBodyGd);
  GridLayout createLayout=createLayout(1);
  createLayout.verticalSpacing=0;
  createLayout.horizontalSpacing=0;
  createLayout.marginHeight=0;
  createLayout.marginWidth=0;
  formBody.setLayout(createLayout);
  if (!PluginChecker.isSVNProviderPluginLoaded()) {
    createTosRepositoryArea(formBody);
    createTosActionArea(formBody);
    createTosProjectArea(formBody);
  }
 else {
    createTisRepositoryArea(formBody);
    createSeparator(formBody);
    createTisActionArea(formBody);
    createTisProjectArea(formBody);
    createTisBlankArea(formBody);
  }
  createTosWelcomArea(formBody);
  readConnectionData();
  recordFirstConnection();
  fillContents();
  addListeners();
  if (inuse) {
    manageViewer.getControl().setEnabled(false);
    manageProjectsButton.setEnabled(false);
    openProjectBtn.setEnabled(false);
    restartBut.setVisible(false);
  }
  if (PluginChecker.isSVNProviderPluginLoaded()) {
    manageViewer.getControl().setEnabled(true);
    manageProjectsButton.setEnabled(true);
  }
  try {
    setStatusArea();
    log.info("String_Node_Str");
    validateUpdate();
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
    log.error(e);
  }
catch (  JSONException e) {
    ExceptionHandler.process(e);
    log.error(e);
  }
  displayPasswordComposite();
  if (!PluginChecker.isSVNProviderPluginLoaded()) {
    initConnection();
  }
}

Fixed version (ground truth):
/** 
 * Constructs a new LoginComposite.
 * @param parent Parent component.
 * @param style Style bits.
 */
public LoginComposite(Composite parent,int style,LoginDialog dialog,boolean inuse,TOSLoginComposite tosLoginComposite,StackLayout stackLayout){
  super(parent,style);
  this.parent=parent;
  this.dialog=dialog;
  this.inuse=inuse;
  this.tosLoginComposite=tosLoginComposite;
  this.stackLayout=stackLayout;
  perReader=ConnectionUserPerReader.getInstance();
  GridLayout layout=new GridLayout();
  layout.marginHeight=0;
  layout.marginWidth=0;
  setLayout(layout);
  toolkit=new FormToolkit(this.getDisplay());
  Form form=toolkit.createForm(this);
  formBody=form.getBody();
  formBody.setBackgroundMode(SWT.INHERIT_DEFAULT);
  GridData formBodyGd=new GridData(GridData.FILL_BOTH);
  form.setLayoutData(formBodyGd);
  GridLayout createLayout=createLayout(1);
  createLayout.verticalSpacing=0;
  createLayout.horizontalSpacing=0;
  createLayout.marginHeight=0;
  createLayout.marginWidth=0;
  formBody.setLayout(createLayout);
  columnFormDatas=new ArrayList<FormData>();
  Composite rightPartComposite=null;
  if (!PluginChecker.isSVNProviderPluginLoaded()) {
    createTosRepositoryArea(formBody);
    createTosActionArea(formBody);
    createTosProjectArea(formBody);
    rightPartComposite=repositoryComposite;
  }
 else {
    createTisRepositoryArea(formBody);
    createSeparator(formBody);
    createTisActionArea(formBody);
    createTisProjectArea(formBody);
    createTisBlankArea(formBody);
    rightPartComposite=tisRepositoryComposite;
  }
  createTosWelcomArea(formBody);
  rightPartComposite.pack();
  int size=(int)(rightPartComposite.getSize().x * (7.0 / 21));
  if (size < LEFTSPACE) {
    LEFTSPACE=size;
  }
  for (  FormData iFormData : columnFormDatas) {
    iFormData.right=new FormAttachment(0,LEFTSPACE);
  }
  readConnectionData();
  recordFirstConnection();
  fillContents();
  addListeners();
  if (inuse) {
    manageViewer.getControl().setEnabled(false);
    manageProjectsButton.setEnabled(false);
    openProjectBtn.setEnabled(false);
    restartBut.setVisible(false);
  }
  if (PluginChecker.isSVNProviderPluginLoaded()) {
    manageViewer.getControl().setEnabled(true);
    manageProjectsButton.setEnabled(true);
  }
  try {
    setStatusArea();
    log.info("String_Node_Str");
    validateUpdate();
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
    log.error(e);
  }
catch (  JSONException e) {
    ExceptionHandler.process(e);
    log.error(e);
  }
  displayPasswordComposite();
  if (!PluginChecker.isSVNProviderPluginLoaded()) {
    initConnection();
  }
}