Program: 17383
Project: 17383
Buggy source:
protected IDocument createDocument(Object element) throws CoreException {
  ICFDocument document=null;
  document=new ICFDocument();
  if (setDocumentContent(document,(IEditorInput)element,getEncoding(element))) {
    setupDocument(element,document);
  }
  if (document != null) {
    if (document.getDocumentPartitioner(CFDocumentSetupParticipant.CFML_PARTITIONING) == null)     fCFDocumentSetupParticipant.setup(document);
    CFMLPropertyManager pm=new CFMLPropertyManager();
    String currentDict=DictionaryManager.getFirstVersion(DictionaryManager.CFDIC);
    if (element instanceof FileEditorInput) {
      IProject project=((FileEditorInput)element).getFile().getProject();
      currentDict=pm.getCurrentDictionary(project);
    }
    DictionaryManager.loadDictionaryFromCache(currentDict,DictionaryManager.CFDIC);
    try {
      if (element instanceof FileEditorInput) {
        document.setParserResource(((FileEditorInput)element).getFile());
        document.clearAllMarkers();
        document.parseDocument();
      }
 else       if (element instanceof CFJavaFileEditorInput) {
        String filepath=((CFJavaFileEditorInput)element).getPath(element).toString();
        IPath path=new Path(filepath);
        Workspace workspace=(Workspace)CFMLPlugin.getWorkspace();
        IFile file=new ExternalFile(path,workspace);
        model=((ExternalFile)file).getAnnotationModel();
        document.setParserResource(file);
        document.clearAllMarkers();
        document.parseDocument();
      }
 else       if (element instanceof RemoteFileEditorInput) {
        String filepath=((RemoteFileEditorInput)element).getPath(element).toString();
        Path path=new Path(filepath);
        Workspace workspace=(Workspace)CFMLPlugin.getWorkspace();
        ExternalFile file=new ExternalFile(path,workspace);
        model=file.getAnnotationModel();
        document.setParserResource(file);
        document.clearAllMarkers();
        document.parseDocument();
      }
 else       if (element instanceof FileStoreEditorInput) {
        String filepath=((FileStoreEditorInput)element).getURI().getPath().toString();
        IPath path=new Path(filepath);
        Workspace workspace=(Workspace)CFMLPlugin.getWorkspace();
        IFile file=new ExternalFile(path,workspace);
        model=((ExternalFile)file).getAnnotationModel();
        document.setParserResource(file);
        document.clearAllMarkers();
        document.parseDocument();
      }
 else {
        System.out.println("String_Node_Str" + element.getClass().getName());
      }
    }
 catch (    Exception e) {
      e.printStackTrace(System.err);
    }
  }
  return document;
}

Fixed version (ground truth):
protected IDocument createDocument(Object element) throws CoreException {
  ICFDocument document=null;
  document=new ICFDocument();
  try {
    if (setDocumentContent(document,(IEditorInput)element,getEncoding(element))) {
      setupDocument(element,document);
    }
  }
 catch (  Exception e) {
    if (e instanceof java.io.FileNotFoundException) {
      document=null;
    }
  }
  if (document != null) {
    if (document.getDocumentPartitioner(CFDocumentSetupParticipant.CFML_PARTITIONING) == null)     fCFDocumentSetupParticipant.setup(document);
    CFMLPropertyManager pm=new CFMLPropertyManager();
    String currentDict=DictionaryManager.getFirstVersion(DictionaryManager.CFDIC);
    if (element instanceof FileEditorInput) {
      IProject project=((FileEditorInput)element).getFile().getProject();
      currentDict=pm.getCurrentDictionary(project);
    }
    DictionaryManager.loadDictionaryFromCache(currentDict,DictionaryManager.CFDIC);
    try {
      if (element instanceof FileEditorInput) {
        document.setParserResource(((FileEditorInput)element).getFile());
        document.clearAllMarkers();
        document.parseDocument();
      }
 else       if (element instanceof CFJavaFileEditorInput) {
        String filepath=((CFJavaFileEditorInput)element).getPath(element).toString();
        IPath path=new Path(filepath);
        Workspace workspace=(Workspace)CFMLPlugin.getWorkspace();
        IFile file=new ExternalFile(path,workspace);
        model=((ExternalFile)file).getAnnotationModel();
        document.setParserResource(file);
        document.clearAllMarkers();
        document.parseDocument();
      }
 else       if (element instanceof RemoteFileEditorInput) {
        String filepath=((RemoteFileEditorInput)element).getPath(element).toString();
        Path path=new Path(filepath);
        Workspace workspace=(Workspace)CFMLPlugin.getWorkspace();
        ExternalFile file=new ExternalFile(path,workspace);
        model=file.getAnnotationModel();
        document.setParserResource(file);
        document.clearAllMarkers();
        document.parseDocument();
      }
 else       if (element instanceof FileStoreEditorInput) {
        String filepath=((FileStoreEditorInput)element).getURI().getPath().toString();
        IPath path=new Path(filepath);
        Workspace workspace=(Workspace)CFMLPlugin.getWorkspace();
        IFile file=new ExternalFile(path,workspace);
        model=((ExternalFile)file).getAnnotationModel();
        document.setParserResource(file);
        document.clearAllMarkers();
        document.parseDocument();
      }
 else {
        System.out.println("String_Node_Str" + element.getClass().getName());
      }
    }
 catch (    Exception e) {
      e.printStackTrace(System.err);
    }
  }
  return document;
}