Program: 121792
Project: 121792
Buggy source:
private void createOptionsForJbossESB(Composite left,Font font){
  contextButton=new Button(left,SWT.CHECK | SWT.LEFT);
  contextButton.setText(Messages.getString("String_Node_Str"));
  contextButton.setSelection(true);
  contextButton.setFont(font);
  String jobLabel="String_Node_Str";
  contextCombo=new Combo(left,SWT.PUSH);
  if (getProcessItem() != null) {
    try {
      setProcessItem((ProcessItem)ProxyRepositoryFactory.getInstance().getUptodateProperty(getProcessItem().getProperty()).getItem());
    }
 catch (    PersistenceException e) {
      e.printStackTrace();
    }
    jobLabel=(getProcessItem()).getProperty().getLabel();
    List<String> contextNames=getJobContexts(getProcessItem());
    contextCombo.setItems(contextNames.toArray(new String[contextNames.size()]));
    if (contextNames.size() > 0) {
      contextCombo.select(0);
    }
  }
  applyToChildrenButton=new Button(left,SWT.CHECK | SWT.LEFT);
  applyToChildrenButton.setText(Messages.getString("String_Node_Str"));
  applyToChildrenButton.setSelection(true);
  jobItemButton=new Button(left,SWT.CHECK | SWT.LEFT);
  jobItemButton.setText(Messages.getString("String_Node_Str"));
  jobItemButton.setSelection(true);
  jobItemButton.setFont(font);
  GridData gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=1;
  jobItemButton.setLayoutData(gd);
  Label esbTypeLabel=new Label(left,SWT.None);
  esbTypeLabel.setText(Messages.getString("String_Node_Str"));
  esbTypeCombo=new Combo(left,SWT.PUSH);
  gd=new GridData();
  gd.horizontalSpan=2;
  esbTypeCombo.setLayoutData(gd);
  esbTypeCombo.add(ESBTYPE_JBOSS_MQ);
  esbTypeCombo.add(ESBTYPE_JBOSS_MESSAGING);
  esbTypeCombo.select(0);
  Label esbServiceNameLabel=new Label(left,SWT.RIGHT);
  esbServiceNameLabel.setText(Messages.getString("String_Node_Str"));
  esbServiceName=new Text(left,SWT.BORDER);
  esbServiceName.setText("String_Node_Str");
  gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=2;
  esbServiceName.setLayoutData(gd);
  Label esbCategoryLabel=new Label(left,SWT.None);
  esbCategoryLabel.setText(Messages.getString("String_Node_Str"));
  esbCategory=new Text(left,SWT.BORDER);
  esbCategory.setText("String_Node_Str");
  gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=2;
  esbCategory.setLayoutData(gd);
  Label queueLabel=new Label(left,SWT.None);
  queueLabel.setText(Messages.getString("String_Node_Str"));
  esbQueueMessageName=new Text(left,SWT.BORDER);
  esbQueueMessageName.setText(Messages.getString("String_Node_Str",jobLabel));
  gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=2;
  esbQueueMessageName.setLayoutData(gd);
}

Fixed version (ground truth):
private void createOptionsForJbossESB(Composite left,Font font){
  contextButton=new Button(left,SWT.CHECK | SWT.LEFT);
  contextButton.setText(Messages.getString("String_Node_Str"));
  contextButton.setSelection(true);
  contextButton.setFont(font);
  String jobLabel="String_Node_Str";
  contextCombo=new Combo(left,SWT.PUSH);
  if (getProcessItem() != null) {
    try {
      setProcessItem((ProcessItem)ProxyRepositoryFactory.getInstance().getUptodateProperty(getProcessItem().getProperty()).getItem());
    }
 catch (    PersistenceException e) {
      e.printStackTrace();
    }
    jobLabel=(getProcessItem()).getProperty().getLabel();
    List<String> contextNames=getJobContexts(getProcessItem());
    contextCombo.setItems(contextNames.toArray(new String[contextNames.size()]));
    if (contextNames.size() > 0) {
      contextCombo.select(0);
    }
  }
  applyToChildrenButton=new Button(left,SWT.CHECK | SWT.LEFT);
  applyToChildrenButton.setText(Messages.getString("String_Node_Str"));
  applyToChildrenButton.setSelection(true);
  jobItemButton=new Button(left,SWT.CHECK | SWT.LEFT);
  jobItemButton.setText(Messages.getString("String_Node_Str"));
  jobItemButton.setSelection(true);
  jobItemButton.setFont(font);
  GridData gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=1;
  jobItemButton.setLayoutData(gd);
  Label esbTypeLabel=new Label(left,SWT.None);
  esbTypeLabel.setText(Messages.getString("String_Node_Str"));
  esbTypeCombo=new Combo(left,SWT.PUSH);
  esbTypeCombo.add(ESBTYPE_JBOSS_MQ);
  esbTypeCombo.add(ESBTYPE_JBOSS_MESSAGING);
  esbTypeCombo.select(0);
  Label esbServiceNameLabel=new Label(left,SWT.RIGHT);
  esbServiceNameLabel.setText(Messages.getString("String_Node_Str"));
  esbServiceName=new Text(left,SWT.BORDER);
  esbServiceName.setText("String_Node_Str");
  gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=2;
  esbServiceName.setLayoutData(gd);
  Label esbCategoryLabel=new Label(left,SWT.None);
  esbCategoryLabel.setText(Messages.getString("String_Node_Str"));
  esbCategory=new Text(left,SWT.BORDER);
  esbCategory.setText("String_Node_Str");
  gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=2;
  esbCategory.setLayoutData(gd);
  Label queueLabel=new Label(left,SWT.None);
  queueLabel.setText(Messages.getString("String_Node_Str"));
  esbQueueMessageName=new Text(left,SWT.BORDER);
  esbQueueMessageName.setText(Messages.getString("String_Node_Str",jobLabel));
  gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=2;
  esbQueueMessageName.setLayoutData(gd);
}