Program: 121518
Project: 121518
Buggy source:
public void refresh(){
  RunProcessContext activeContext=RunProcessPlugin.getDefault().getRunProcessContextManager().getActiveContext();
  boolean disableAll=false;
  if (activeContext != null) {
    disableAll=activeContext.getProcess().disableRunJobView();
  }
  processContext=activeContext;
  rubjobManager.setProcessContext(processContext);
  if (contextComposite.isDisposed()) {
    return;
  }
  if (activeContext != null && !activeContext.getProcess().getComponentsType().equals(oldJobType)) {
    oldJobType=activeContext.getProcess().getComponentsType();
    setElement();
  }
  contextComposite.setProcess(((activeContext != null) && !disableAll ? activeContext.getProcess() : null));
  if (dc == processComposite) {
    processComposite.setProcessContext(activeContext);
  }
  rubjobManager.setSelectContext(contextComposite.getSelectedContext());
  if (dc == debugTisProcessComposite) {
    debugTisProcessComposite.setProcessContext(activeContext);
    debugTisProcessComposite.setContextComposite(this.contextComposite);
  }
  if (dc == advanceComposite) {
    advanceComposite.setProcessContext(activeContext);
  }
  if (dc == targetComposite) {
    targetComposite.setProcessContext(activeContext);
  }
  if (activeContext != null) {
    String jobName=Messages.getString("String_Node_Str");
    if (activeContext.getProcess().disableRunJobView()) {
      jobName="String_Node_Str";
    }
    jobName=jobName + "String_Node_Str" + activeContext.getProcess().getLabel();
    setTitleToolTip(jobName);
    setPartName(Messages.getString("String_Node_Str",jobName));
    tabFactory.setTitle(jobName,null);
  }
 else {
    setPartName(Messages.getString("String_Node_Str"));
    tabFactory.setTitle(Messages.getString("String_Node_Str"),null);
  }
}

Fixed version (ground truth):
public void refresh(){
  RunProcessContext activeContext=RunProcessPlugin.getDefault().getRunProcessContextManager().getActiveContext();
  boolean disableAll=false;
  if (activeContext != null) {
    disableAll=activeContext.getProcess().disableRunJobView();
  }
  processContext=activeContext;
  rubjobManager.setProcessContext(processContext);
  if (contextComposite.isDisposed()) {
    return;
  }
  if (activeContext != null && !activeContext.getProcess().getComponentsType().equals(oldJobType)) {
    oldJobType=activeContext.getProcess().getComponentsType();
    setElement();
  }
  contextComposite.setProcess(((activeContext != null) && !disableAll ? activeContext.getProcess() : null));
  if (dc != null && dc == processComposite) {
    processComposite.setProcessContext(activeContext);
  }
  rubjobManager.setSelectContext(contextComposite.getSelectedContext());
  if (dc != null && dc == debugTisProcessComposite) {
    debugTisProcessComposite.setProcessContext(activeContext);
    debugTisProcessComposite.setContextComposite(this.contextComposite);
  }
  if (dc != null && dc == advanceComposite) {
    advanceComposite.setProcessContext(activeContext);
  }
  if (dc != null && dc == targetComposite) {
    targetComposite.setProcessContext(activeContext);
  }
  if (activeContext != null) {
    String jobName=Messages.getString("String_Node_Str");
    if (activeContext.getProcess().disableRunJobView()) {
      jobName="String_Node_Str";
    }
    jobName=jobName + "String_Node_Str" + activeContext.getProcess().getLabel();
    setTitleToolTip(jobName);
    setPartName(Messages.getString("String_Node_Str",jobName));
    tabFactory.setTitle(jobName,null);
  }
 else {
    setPartName(Messages.getString("String_Node_Str"));
    tabFactory.setTitle(Messages.getString("String_Node_Str"),null);
  }
}