Program: 122943
Project: 122943
Buggy source:
private void covertJobscriptOnPageChange(){
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICreateXtextProcessService.class)) {
    try {
      boolean isDirty=getEditor(2).isDirty();
      getEditor(2).doSave(null);
      IProcess2 oldProcess=getProcess();
      ICreateXtextProcessService n=CorePlugin.getDefault().getCreateXtextProcessService();
      Item item=oldProcess.getProperty().getItem();
      ProcessType processType=null;
      if (item instanceof ProcessItem) {
        processType=n.convertDesignerEditorInput(((IFile)getEditor(2).getEditorInput().getAdapter(IResource.class)).getLocation().toOSString(),oldProcess.getProperty());
      }
 else       if (item instanceof JobletProcessItem) {
        processType=n.convertJobletDesignerEditorInput(((IFile)getEditor(2).getEditorInput().getAdapter(IResource.class)).getLocation().toOSString(),oldProcess.getProperty());
      }
      if (item instanceof ProcessItem) {
        ((Process)oldProcess).updateProcess(processType);
      }
 else       if (item instanceof JobletProcessItem) {
        ((Process)oldProcess).updateProcess(processType);
      }
      oldProcess.getUpdateManager().updateAll();
      designerEditor.setDirty(isDirty);
    }
 catch (    PersistenceException e) {
    }
  }
}

Fixed version (ground truth):
private void covertJobscriptOnPageChange(){
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICreateXtextProcessService.class)) {
    try {
      boolean isDirty=getEditor(2).isDirty();
      getEditor(2).doSave(null);
      IProcess2 oldProcess=getProcess();
      ICreateXtextProcessService n=CorePlugin.getDefault().getCreateXtextProcessService();
      Item item=oldProcess.getProperty().getItem();
      ProcessType processType=null;
      if (item instanceof ProcessItem) {
        processType=n.convertDesignerEditorInput(((IFile)getEditor(2).getEditorInput().getAdapter(IResource.class)).getLocation().toOSString(),oldProcess.getProperty());
      }
 else       if (item instanceof JobletProcessItem) {
        processType=n.convertJobletDesignerEditorInput(((IFile)getEditor(2).getEditorInput().getAdapter(IResource.class)).getLocation().toOSString(),oldProcess.getProperty());
      }
      if (item instanceof ProcessItem) {
        ((Process)oldProcess).updateProcess(processType);
      }
 else       if (item instanceof JobletProcessItem) {
        ((Process)oldProcess).updateProcess(processType);
      }
      oldProcess.getUpdateManager().updateAll();
      designerEditor.setDirty(isDirty);
      List<Node> nodes=(List<Node>)oldProcess.getGraphicalNodes();
      for (      Node node : nodes) {
        node.getProcess().checkStartNodes();
        node.checkAndRefreshNode();
        IElementParameter ep=node.getElementParameter("String_Node_Str");
        if (ep != null && ep.getValue().equals(Boolean.FALSE)) {
          node.setPropertyValue(EParameterName.ACTIVATE.getName(),true);
          node.setPropertyValue(EParameterName.ACTIVATE.getName(),false);
        }
 else         if (ep != null && ep.getValue().equals(Boolean.TRUE)) {
          node.setPropertyValue(EParameterName.ACTIVATE.getName(),false);
          node.setPropertyValue(EParameterName.ACTIVATE.getName(),true);
        }
      }
    }
 catch (    PersistenceException e) {
    }
  }
}