Program: 141675
Project: 141675
Buggy source:
@Override public void addRuntimeServer(TargetExecComposite targetExecComposite,JobJvmComposite jobComposite){
  Combo targetCombo=null;
  IPreferenceStore store=ESBRunContainerPlugin.getDefault().getPreferenceStore();
  String url=store.getString(RunContainerPreferenceInitializer.P_ESB_RUNTIME_HOST);
  String port=store.getString(RunContainerPreferenceInitializer.P_ESB_RUNTIME_PORT);
  String rt=ESB_RUNTIME_ITEM + "String_Node_Str" + url+ "String_Node_Str"+ port+ "String_Node_Str";
  if (JobJvmComposite.class == jobComposite.getClass()) {
    try {
      Control control=((Composite)jobComposite.getChildren()[0]).getChildren()[0];
      if (control instanceof StyledText) {
        StyledText styled=(StyledText)control;
        styled.setText(RunContainerMessages.getString("String_Node_Str"));
        targetCombo=new Combo((Composite)jobComposite.getChildren()[0],SWT.BORDER | SWT.READ_ONLY);
        GridData data=new GridData(GridData.FILL_BOTH);
        data.horizontalIndent=5;
        targetCombo.setLayoutData(data);
        targetCombo.add("String_Node_Str",0);
        targetCombo.add(rt,1);
        this.index=targetCombo.getSelectionIndex();
        targetCombo.select(index == -1 ? 0 : index);
      }
    }
 catch (    Exception ex) {
    }
  }
 else {
    try {
      Control control=((Composite)jobComposite.getChildren()[0]).getChildren()[0];
      if (control instanceof Combo) {
        targetCombo=(Combo)control;
        targetCombo.add(rt);
        this.index=targetCombo.getSelectionIndex();
      }
    }
 catch (    Exception ex) {
    }
  }
  if (targetCombo != null) {
    if (RunProcessPlugin.getDefault().getRunProcessContextManager() instanceof RunContainerProcessContextManager) {
      targetCombo.select(targetCombo.indexOf(rt));
    }
 else {
      targetCombo.select(index);
    }
    targetCombo.addSelectionListener(new SelectionAdapter(){
      @Override public void widgetSelected(      SelectionEvent e){
        if (((Combo)e.getSource()).getText().startsWith(ESB_RUNTIME_ITEM)) {
          IPreferenceStore store=ESBRunContainerPlugin.getDefault().getPreferenceStore();
          String host=store.getString(RunContainerPreferenceInitializer.P_ESB_RUNTIME_HOST);
          File containerDir=new File(store.getString(RunContainerPreferenceInitializer.P_ESB_RUNTIME_LOCATION));
          if (containerDir.exists() || !(host.equals("String_Node_Str") || host.equals("String_Node_Str"))) {
            defaultContextManager=RunProcessPlugin.getDefault().getRunProcessContextManager();
            esbProcessContext=defaultContextManager.getActiveContext();
            if (runtimeContextManager == null) {
              runtimeContextManager=new RunContainerProcessContextManager();
            }
            RunProcessPlugin.getDefault().setRunProcessContextManager(runtimeContextManager);
            RunProcessPlugin.getDefault().getRunProcessContextManager().setActiveProcess(esbProcessContext.getProcess());
            ProcessManager.getInstance().setProcessContext(runtimeContextManager.getActiveContext());
          }
 else {
            boolean openPrefs=MessageDialog.openConfirm(jobComposite.getShell(),RunContainerMessages.getString("String_Node_Str"),RunContainerMessages.getString("String_Node_Str"));
            if (openPrefs) {
              PreferenceDialog d=new PreferenceDialog(jobComposite.getShell(),PlatformUI.getWorkbench().getPreferenceManager());
              d.setSelectedNode(RunContainerPreferencePage.ID);
              d.open();
            }
          }
        }
 else         if (defaultContextManager != null) {
          RunProcessPlugin.getDefault().setRunProcessContextManager(defaultContextManager);
        }
      }
    }
);
  }
}

Fixed version (ground truth):
@Override public void addRuntimeServer(TargetExecComposite targetExecComposite,JobJvmComposite jobComposite){
  Combo targetCombo=null;
  IPreferenceStore store=ESBRunContainerPlugin.getDefault().getPreferenceStore();
  String url=store.getString(RunContainerPreferenceInitializer.P_ESB_RUNTIME_HOST);
  String port=store.getString(RunContainerPreferenceInitializer.P_ESB_RUNTIME_PORT);
  String rt=ESB_RUNTIME_ITEM + "String_Node_Str" + url+ "String_Node_Str"+ port+ "String_Node_Str";
  if (JobJvmComposite.class == jobComposite.getClass()) {
    try {
      Control control=((Composite)jobComposite.getChildren()[0]).getChildren()[0];
      if (control instanceof StyledText) {
        StyledText styled=(StyledText)control;
        styled.setText(RunContainerMessages.getString("String_Node_Str"));
        targetCombo=new Combo((Composite)jobComposite.getChildren()[0],SWT.BORDER | SWT.READ_ONLY);
        GridData data=new GridData(GridData.FILL_BOTH);
        data.horizontalIndent=5;
        targetCombo.setLayoutData(data);
        targetCombo.add("String_Node_Str",0);
        targetCombo.add(rt,1);
        this.index=targetCombo.getSelectionIndex();
        targetCombo.select(index == -1 ? 0 : index);
      }
    }
 catch (    Exception ex) {
    }
  }
 else {
    try {
      Control control=((Composite)jobComposite.getChildren()[0]).getChildren()[0];
      if (control instanceof Combo) {
        targetCombo=(Combo)control;
        targetCombo.add(rt);
        this.index=targetCombo.getSelectionIndex();
      }
    }
 catch (    Exception ex) {
    }
  }
  if (targetCombo != null) {
    if (RunProcessPlugin.getDefault().getRunProcessContextManager() instanceof RunContainerProcessContextManager) {
      targetCombo.select(targetCombo.indexOf(rt));
    }
 else {
      targetCombo.select(index);
    }
    targetCombo.addSelectionListener(new SelectionAdapter(){
      @Override public void widgetSelected(      SelectionEvent e){
        if (((Combo)e.getSource()).getText().startsWith(ESB_RUNTIME_ITEM)) {
          IPreferenceStore store=ESBRunContainerPlugin.getDefault().getPreferenceStore();
          String host=store.getString(RunContainerPreferenceInitializer.P_ESB_RUNTIME_HOST);
          File containerDir=new File(store.getString(RunContainerPreferenceInitializer.P_ESB_RUNTIME_LOCATION));
          if (containerDir.exists() || !(host.equals("String_Node_Str") || host.equals("String_Node_Str"))) {
            defaultContextManager=RunProcessPlugin.getDefault().getRunProcessContextManager();
            esbProcessContext=defaultContextManager.getActiveContext();
            if (runtimeContextManager == null) {
              runtimeContextManager=new RunContainerProcessContextManager();
            }
            RunProcessPlugin.getDefault().setRunProcessContextManager(runtimeContextManager);
            RunProcessPlugin.getDefault().getRunProcessContextManager().setActiveProcess(esbProcessContext.getProcess());
            ProcessManager.getInstance().setProcessContext(runtimeContextManager.getActiveContext());
          }
 else {
            boolean openPrefs=MessageDialog.openConfirm(jobComposite.getShell(),RunContainerMessages.getString("String_Node_Str"),RunContainerMessages.getString("String_Node_Str"));
            if (openPrefs) {
              PreferenceDialog dlg=new PreferenceDialog(jobComposite.getShell(),PlatformUI.getWorkbench().getPreferenceManager());
              dlg.setSelectedNode(RunContainerPreferencePage.ID);
              dlg.open();
              ((Combo)e.getSource()).select(index);
            }
          }
        }
 else         if (defaultContextManager != null) {
          RunProcessPlugin.getDefault().setRunProcessContextManager(defaultContextManager);
        }
      }
    }
);
  }
}