Program: 113160
Project: 113160
Buggy source:
@Override protected void runInternal(final String[] args,final List<IngestTypePluginProviderSpi<?,?>> pluginProviders){
  final Map<String,LocalFileIngestPlugin<?>> localFileIngestPlugins=new HashMap<String,LocalFileIngestPlugin<?>>();
  final List<WritableDataAdapter<?>> adapters=new ArrayList<WritableDataAdapter<?>>();
  for (  final IngestTypePluginProviderSpi<?,?> pluginProvider : pluginProviders) {
    LocalFileIngestPlugin<?> localFileIngestPlugin=null;
    try {
      localFileIngestPlugin=pluginProvider.getLocalFileIngestPlugin();
      if (localFileIngestPlugin == null) {
        LOGGER.warn("String_Node_Str" + pluginProvider.getIngestTypeName() + "String_Node_Str");
        continue;
      }
    }
 catch (    final UnsupportedOperationException e) {
      LOGGER.warn("String_Node_Str" + pluginProvider.getIngestTypeName() + "String_Node_Str",e);
      continue;
    }
    final Index[] supportedIndices=localFileIngestPlugin.getSupportedIndices();
    final Index selectedIndex=accumulo.getPrimaryIndex();
    boolean indexSupported=false;
    for (    final Index i : supportedIndices) {
      if (i.getId().equals(selectedIndex.getId())) {
        indexSupported=true;
        break;
      }
    }
    if (!indexSupported) {
      LOGGER.warn("String_Node_Str" + pluginProvider.getIngestTypeName() + "String_Node_Str"+ StringUtils.stringFromBinary(selectedIndex.getId().getBytes())+ "String_Node_Str");
      continue;
    }
    localFileIngestPlugins.put(pluginProvider.getIngestTypeName(),localFileIngestPlugin);
    adapters.addAll(Arrays.asList(localFileIngestPlugin.getDataAdapters(accumulo.getVisibility())));
  }
  final AccumuloOperations operations=accumulo.getAccumuloOperations();
  if (localFileIngestPlugins.isEmpty()) {
    LOGGER.fatal("String_Node_Str");
    return;
  }
  final DataStore dataStore=new AccumuloDataStore(operations);
  indexWriter=null;
  try {
    indexWriter=dataStore.createIndexWriter(accumulo.getPrimaryIndex());
    processInput(localFileIngestPlugins,new IngestRunData(indexWriter,adapters));
  }
 catch (  final IOException e) {
    LOGGER.fatal("String_Node_Str",e);
  }
 finally {
    if (indexWriter != null) {
      indexWriter.close();
    }
  }
}

Fixed version (ground truth):
@Override protected void runInternal(final String[] args,final List<IngestTypePluginProviderSpi<?,?>> pluginProviders){
  final Map<String,LocalFileIngestPlugin<?>> localFileIngestPlugins=new HashMap<String,LocalFileIngestPlugin<?>>();
  final List<WritableDataAdapter<?>> adapters=new ArrayList<WritableDataAdapter<?>>();
  for (  final IngestTypePluginProviderSpi<?,?> pluginProvider : pluginProviders) {
    LocalFileIngestPlugin<?> localFileIngestPlugin=null;
    try {
      localFileIngestPlugin=pluginProvider.getLocalFileIngestPlugin();
      if (localFileIngestPlugin == null) {
        LOGGER.warn("String_Node_Str" + pluginProvider.getIngestTypeName() + "String_Node_Str");
        continue;
      }
    }
 catch (    final UnsupportedOperationException e) {
      LOGGER.warn("String_Node_Str" + pluginProvider.getIngestTypeName() + "String_Node_Str",e);
      continue;
    }
    final Index[] supportedIndices=localFileIngestPlugin.getSupportedIndices();
    final Index selectedIndex=accumulo.getPrimaryIndex();
    boolean indexSupported=false;
    for (    final Index i : supportedIndices) {
      if (i.getId().equals(selectedIndex.getId())) {
        indexSupported=true;
        break;
      }
    }
    if (!indexSupported) {
      LOGGER.warn("String_Node_Str" + pluginProvider.getIngestTypeName() + "String_Node_Str"+ StringUtils.stringFromBinary(selectedIndex.getId().getBytes())+ "String_Node_Str");
      continue;
    }
    localFileIngestPlugins.put(pluginProvider.getIngestTypeName(),localFileIngestPlugin);
    adapters.addAll(Arrays.asList(localFileIngestPlugin.getDataAdapters(accumulo.getVisibility())));
  }
  final AccumuloOperations operations=accumulo.getAccumuloOperations();
  if (localFileIngestPlugins.isEmpty()) {
    LOGGER.fatal("String_Node_Str");
    return;
  }
  final DataStore dataStore=new AccumuloDataStore(operations);
  try (IndexWriter indexWriter=dataStore.createIndexWriter(accumulo.getPrimaryIndex())){
    processInput(localFileIngestPlugins,new IngestRunData(indexWriter,adapters));
  }
 catch (  final IOException e) {
    LOGGER.fatal("String_Node_Str",e);
  }
}