Program: 134492
Project: 134492
Buggy source:
@Override public void reconcile(IRegion partition){
  if (editor == null || editor.getEditorInput() == null || !(editor.getEditorInput() instanceof IFileEditorInput)) {
    return;
  }
  IFile file=((IFileEditorInput)editor.getEditorInput()).getFile();
  final YangAnnotationModel annotationModel=(YangAnnotationModel)getAnnotationModel();
  YangFile yangFile=YangCorePlugin.createYangFile(file);
  try {
    final AtomicBoolean errors=new AtomicBoolean(false);
    annotationModel.init();
    Module module=YangParserUtil.parseYangFile(document.get().toCharArray(),file.getProject(),new IYangValidationListener(){
      @Override public void validationError(      String msg,      int lineNumber,      int charStart,      int charEnd){
        errors.set(true);
        annotationModel.addProblem(new YangProblem(new YangSyntaxAnnotation(null),new Position(charStart,charEnd - charStart)));
      }
      @Override public void syntaxError(      String msg,      int lineNumber,      int charStart,      int charEnd){
        errors.set(true);
        annotationModel.addProblem(new YangProblem(new YangSyntaxAnnotation(null),new Position(charStart,charEnd - charStart)));
      }
    }
);
    annotationModel.reportProblem();
    YangFileInfo fileInfo=(YangFileInfo)yangFile.getElementInfo(monitor);
    if (!errors.get()) {
      module.setFlags(ASTNode.VALID);
      fileInfo.setModule(module);
      fileInfo.setIsStructureKnown(true);
      YangModelManager.getIndexManager().addWorkingCopy(file);
    }
 else {
      module.setFlags(ASTNode.MALFORMED);
      fileInfo.setModule(module);
      fileInfo.setIsStructureKnown(false);
    }
    if (editor instanceof YangEditor) {
      ((YangEditor)editor).reconcile();
    }
  }
 catch (  Exception e) {
  }
 finally {
    if (editor instanceof YangEditor) {
      ((YangEditor)editor).updateSemanticHigliting();
    }
  }
}

Fixed version (ground truth):
@Override public void reconcile(IRegion partition){
  if (editor == null || editor.getEditorInput() == null || !(editor.getEditorInput() instanceof IFileEditorInput)) {
    return;
  }
  IFile file=((IFileEditorInput)editor.getEditorInput()).getFile();
  final YangAnnotationModel annotationModel=(YangAnnotationModel)getAnnotationModel();
  YangFile yangFile=YangCorePlugin.createYangFile(file);
  try {
    final AtomicBoolean errors=new AtomicBoolean(false);
    annotationModel.init();
    Module module=YangParserUtil.parseYangFile(document.get().toCharArray(),file.getProject(),new IYangValidationListener(){
      @Override public void validationError(      String msg,      int lineNumber,      int charStart,      int charEnd){
        errors.set(true);
        annotationModel.addProblem(new YangProblem(new YangSyntaxAnnotation(msg),new Position(charStart,charEnd - charStart)));
      }
      @Override public void syntaxError(      String msg,      int lineNumber,      int charStart,      int charEnd){
        errors.set(true);
        annotationModel.addProblem(new YangProblem(new YangSyntaxAnnotation(msg),new Position(charStart,charEnd - charStart)));
      }
    }
);
    annotationModel.reportProblem();
    YangFileInfo fileInfo=(YangFileInfo)yangFile.getElementInfo(monitor);
    if (!errors.get()) {
      module.setFlags(ASTNode.VALID);
      fileInfo.setModule(module);
      fileInfo.setIsStructureKnown(true);
      YangModelManager.getIndexManager().addWorkingCopy(file);
    }
 else {
      module.setFlags(ASTNode.MALFORMED);
      fileInfo.setModule(module);
      fileInfo.setIsStructureKnown(false);
    }
    if (editor instanceof YangEditor) {
      ((YangEditor)editor).reconcile();
    }
  }
 catch (  Exception e) {
  }
 finally {
    if (editor instanceof YangEditor) {
      ((YangEditor)editor).updateSemanticHigliting();
    }
  }
}