Program: 153228
Project: 153228
Buggy source:
private void indexFile(Document doc,IndexWriter indexWriter,SVNDirEntry dirEntry,Repository repository,SVNLogEntry logEntry,SVNLogEntryPath entryPath) throws SVNException, IOException {
  SVNProperties fileProperties=new SVNProperties();
  SVNNodeKind nodeKind=repository.getRepository().checkPath(entryPath.getPath(),logEntry.getRevision());
  addUnTokenizedField(doc,FieldNames.REVISION,NumberUtils.pad(logEntry.getRevision()));
  boolean isDir=nodeKind == SVNNodeKind.DIR;
  boolean isFile=nodeKind == SVNNodeKind.FILE;
  FileName fileName=new FileName(entryPath.getPath(),isDir);
  LOGGER.info("String_Node_Str" + entryPath.getPath() + "String_Node_Str");
  addUnTokenizedField(doc,FieldNames.PATH,fileName.getPath().toLowerCase());
  addUnTokenizedField(doc,FieldNames.DPATH,fileName.getPath());
  if (isDir) {
    LOGGER.debug("String_Node_Str" + entryPath.getPath() + "String_Node_Str");
    addUnTokenizedField(doc,FieldNames.NODE,"String_Node_Str");
  }
 else   if (isFile) {
    LOGGER.debug("String_Node_Str" + entryPath.getPath() + "String_Node_Str");
    addUnTokenizedField(doc,FieldNames.NODE,"String_Node_Str");
  }
 else {
    addUnTokenizedField(doc,FieldNames.NODE,"String_Node_Str");
    LOGGER.debug("String_Node_Str" + entryPath.getPath() + "String_Node_Str");
  }
  if (entryPath.getCopyPath() != null) {
    addUnTokenizedField(doc,FieldNames.FROM,entryPath.getCopyPath());
    addUnTokenizedField(doc,FieldNames.FROMREV,entryPath.getCopyRevision());
  }
  addUnTokenizedField(doc,FieldNames.FILENAME,fileName.getBaseName().toLowerCase());
  addUnTokenizedField(doc,FieldNames.DFILENAME,fileName.getBaseName());
  addUnTokenizedField(doc,FieldNames.AUTHOR,logEntry.getAuthor() == null ? "String_Node_Str" : logEntry.getAuthor());
  addTokenizedField(doc,FieldNames.MESSAGE,logEntry.getMessage() == null ? "String_Node_Str" : logEntry.getMessage());
  addUnTokenizedField(doc,FieldNames.DATE,logEntry.getDate());
  addUnTokenizedField(doc,FieldNames.KIND,entryPath.getType());
  addUnTokenizedField(doc,FieldNames.REPOSITORYUUID,repository.getRepository().getRepositoryUUID(false));
  addUnTokenizedField(doc,FieldNames.REPOSITORY,getName());
  if (nodeKind == SVNNodeKind.NONE) {
    LOGGER.debug("String_Node_Str" + entryPath.getPath() + "String_Node_Str");
  }
 else   if (nodeKind == SVNNodeKind.DIR) {
    LOGGER.debug("String_Node_Str" + entryPath.getPath() + "String_Node_Str");
    Collection<SVNDirEntry> dirEntries=null;
    repository.getRepository().getDir(entryPath.getPath(),logEntry.getRevision(),fileProperties,dirEntries);
    indexProperties(fileProperties,doc);
  }
 else   if (nodeKind == SVNNodeKind.FILE) {
    repository.getRepository().getFile(entryPath.getPath(),logEntry.getRevision(),fileProperties,null);
    indexProperties(fileProperties,doc);
    FileExtensionHandler feh=new FileExtensionHandler();
    feh.setFileProperties(fileProperties);
    feh.setDoc(doc);
    feh.execute(repository,dirEntry,entryPath.getPath(),logEntry.getRevision());
  }
  indexWriter.addDocument(doc);
  LOGGER.debug("String_Node_Str" + entryPath.getPath() + "String_Node_Str");
}

Fixed version (ground truth):
private void indexFile(Document doc,IndexWriter indexWriter,SVNDirEntry dirEntry,Repository repository,SVNLogEntry logEntry,SVNLogEntryPath entryPath) throws SVNException, IOException {
  SVNProperties fileProperties=new SVNProperties();
  SVNNodeKind nodeKind=repository.getRepository().checkPath(entryPath.getPath(),logEntry.getRevision());
  addUnTokenizedField(doc,FieldNames.REVISION,NumberUtils.pad(logEntry.getRevision()));
  boolean isDir=nodeKind == SVNNodeKind.DIR;
  boolean isFile=nodeKind == SVNNodeKind.FILE;
  FileName fileName=new FileName(entryPath.getPath(),isDir);
  LOGGER.info("String_Node_Str" + entryPath.getPath() + "String_Node_Str");
  addUnTokenizedField(doc,FieldNames.PATH,fileName.getPath().toLowerCase());
  addUnTokenizedField(doc,FieldNames.DPATH,fileName.getPath());
  if (isDir) {
    LOGGER.debug("String_Node_Str" + entryPath.getPath() + "String_Node_Str");
    addUnTokenizedField(doc,FieldNames.NODE,"String_Node_Str");
  }
 else   if (isFile) {
    LOGGER.debug("String_Node_Str" + entryPath.getPath() + "String_Node_Str");
    addUnTokenizedField(doc,FieldNames.NODE,"String_Node_Str");
  }
 else {
    addUnTokenizedField(doc,FieldNames.NODE,"String_Node_Str");
    LOGGER.debug("String_Node_Str" + entryPath.getPath() + "String_Node_Str");
  }
  if (entryPath.getCopyPath() != null) {
    addUnTokenizedField(doc,FieldNames.FROM,entryPath.getCopyPath());
    addUnTokenizedField(doc,FieldNames.FROMREV,entryPath.getCopyRevision());
  }
  addUnTokenizedField(doc,FieldNames.FILENAME,fileName.getBaseName().toLowerCase());
  addUnTokenizedField(doc,FieldNames.DFILENAME,fileName.getBaseName());
  addUnTokenizedField(doc,FieldNames.AUTHOR,logEntry.getAuthor() == null ? "String_Node_Str" : logEntry.getAuthor());
  addTokenizedField(doc,FieldNames.MESSAGE,logEntry.getMessage() == null ? "String_Node_Str" : logEntry.getMessage());
  addUnTokenizedField(doc,FieldNames.DATE,logEntry.getDate());
  addUnTokenizedField(doc,FieldNames.KIND,String.valueOf(entryPath.getType()).toLowerCase());
  addUnTokenizedField(doc,FieldNames.REPOSITORYUUID,repository.getRepository().getRepositoryUUID(false));
  addUnTokenizedField(doc,FieldNames.REPOSITORY,getName());
  if (nodeKind == SVNNodeKind.NONE) {
    LOGGER.debug("String_Node_Str" + entryPath.getPath() + "String_Node_Str");
  }
 else   if (nodeKind == SVNNodeKind.DIR) {
    LOGGER.debug("String_Node_Str" + entryPath.getPath() + "String_Node_Str");
    Collection<SVNDirEntry> dirEntries=null;
    repository.getRepository().getDir(entryPath.getPath(),logEntry.getRevision(),fileProperties,dirEntries);
    indexProperties(fileProperties,doc);
  }
 else   if (nodeKind == SVNNodeKind.FILE) {
    repository.getRepository().getFile(entryPath.getPath(),logEntry.getRevision(),fileProperties,null);
    indexProperties(fileProperties,doc);
    FileExtensionHandler feh=new FileExtensionHandler();
    feh.setFileProperties(fileProperties);
    feh.setDoc(doc);
    feh.execute(repository,dirEntry,entryPath.getPath(),logEntry.getRevision());
  }
  indexWriter.addDocument(doc);
  LOGGER.debug("String_Node_Str" + entryPath.getPath() + "String_Node_Str");
}