Program: 188792
Project: 188792
Buggy source:
private void indexFile(File file,boolean commit,boolean recursive){
  RepresentationFilePreservationObject premisFile=null;
  try {
    premisFile=PremisUtils.getPremisFile(model.getStorage(),file.getAipId(),file.getRepresentationId(),file.getId());
  }
 catch (  NotFoundException e) {
    LOGGER.warn("String_Node_Str" + file);
  }
catch (  RODAException|IOException e) {
    LOGGER.warn("String_Node_Str" + file,e);
  }
  String fulltext=null;
  try {
    Binary fulltextBinary=model.retrieveOtherMetadataBinary(file.getAipId(),file.getRepresentationId(),file.getId() + TikaFullTextPlugin.OUTPUT_EXT,TikaFullTextPlugin.APP_NAME);
    Map<String,String> properties=TikaFullTextPluginUtils.extractPropertiesFromResult(fulltextBinary.getContent().createInputStream());
    fulltext=properties.get(RodaConstants.FILE_FULLTEXT);
  }
 catch (  RequestNotValidException|GenericException|AuthorizationDeniedException|ParserConfigurationException|IOException|SAXException e) {
    LOGGER.warn("String_Node_Str" + file,e);
  }
catch (  NotFoundException e) {
    LOGGER.debug("String_Node_Str" + file);
  }
  SolrInputDocument fileDocument=SolrUtils.fileToSolrDocument(file,premisFile,fulltext);
  try {
    index.add(RodaConstants.INDEX_FILE,fileDocument);
  }
 catch (  SolrServerException|IOException e) {
    LOGGER.error("String_Node_Str" + file,e);
  }
  if (recursive && file.isDirectory()) {
    try {
      ClosableIterable<File> allFiles=model.listAllFiles(file);
      for (      File subfile : allFiles) {
        indexFile(subfile,false,false);
      }
      IOUtils.closeQuietly(allFiles);
    }
 catch (    NotFoundException|GenericException|RequestNotValidException|AuthorizationDeniedException e) {
      LOGGER.error("String_Node_Str" + file,e);
    }
  }
  if (commit) {
    try {
      index.commit(RodaConstants.INDEX_FILE);
    }
 catch (    SolrServerException|IOException e) {
      LOGGER.error("String_Node_Str" + file,e);
    }
  }
}

Fixed version (ground truth):
private void indexFile(File file,boolean commit,boolean recursive){
  RepresentationFilePreservationObject premisFile=null;
  try {
    premisFile=PremisUtils.getPremisFile(model.getStorage(),file.getAipId(),file.getRepresentationId(),file.getId());
  }
 catch (  NotFoundException e) {
    LOGGER.trace("String_Node_Str" + file);
  }
catch (  RODAException|IOException e) {
    LOGGER.warn("String_Node_Str" + file,e);
  }
  String fulltext=null;
  try {
    Binary fulltextBinary=model.retrieveOtherMetadataBinary(file.getAipId(),file.getRepresentationId(),file.getId() + TikaFullTextPlugin.OUTPUT_EXT,TikaFullTextPlugin.APP_NAME);
    Map<String,String> properties=TikaFullTextPluginUtils.extractPropertiesFromResult(fulltextBinary.getContent().createInputStream());
    fulltext=properties.get(RodaConstants.FILE_FULLTEXT);
  }
 catch (  RequestNotValidException|GenericException|AuthorizationDeniedException|ParserConfigurationException|IOException|SAXException e) {
    LOGGER.warn("String_Node_Str" + file,e);
  }
catch (  NotFoundException e) {
    LOGGER.trace("String_Node_Str" + file);
  }
  SolrInputDocument fileDocument=SolrUtils.fileToSolrDocument(file,premisFile,fulltext);
  try {
    index.add(RodaConstants.INDEX_FILE,fileDocument);
  }
 catch (  SolrServerException|IOException e) {
    LOGGER.error("String_Node_Str" + file,e);
  }
  if (recursive && file.isDirectory()) {
    try {
      ClosableIterable<File> allFiles=model.listAllFiles(file);
      for (      File subfile : allFiles) {
        indexFile(subfile,false,false);
      }
      IOUtils.closeQuietly(allFiles);
    }
 catch (    NotFoundException|GenericException|RequestNotValidException|AuthorizationDeniedException e) {
      LOGGER.error("String_Node_Str" + file,e);
    }
  }
  if (commit) {
    try {
      index.commit(RodaConstants.INDEX_FILE);
    }
 catch (    SolrServerException|IOException e) {
      LOGGER.error("String_Node_Str" + file,e);
    }
  }
}