Program: 47195
Project: 47195
Buggy source:
/** 
 * Load all renderer configuration files and set up the default renderer.
 * @param pmsConf
 */
public static void loadRendererConfigurations(PmsConfiguration pmsConf){
  _pmsConfiguration=pmsConf;
  enabledRendererConfs=new TreeSet<>(rendererLoadingPriorityComparator);
  try {
    defaultConf=new RendererConfiguration();
  }
 catch (  ConfigurationException e) {
    LOGGER.debug("String_Node_Str",e);
  }
  File renderersDir=getRenderersDir();
  if (renderersDir != null) {
    LOGGER.info("String_Node_Str" + renderersDir.getAbsolutePath());
    File[] confs=renderersDir.listFiles();
    Arrays.sort(confs);
    int rank=1;
    List<String> selectedRenderers=pmsConf.getSelectedRenderers();
    for (    File f : confs) {
      if (f.getName().endsWith("String_Node_Str")) {
        try {
          RendererConfiguration r=new RendererConfiguration(f);
          r.rank=rank++;
          String rendererName=r.getRendererName();
          if (selectedRenderers.contains(rendererName) || selectedRenderers.contains(pmsConf.ALL_RENDERERS)) {
            enabledRendererConfs.add(r);
          }
 else {
            LOGGER.debug("String_Node_Str" + rendererName + "String_Node_Str");
          }
        }
 catch (        ConfigurationException ce) {
          LOGGER.info("String_Node_Str" + f.getAbsolutePath());
        }
      }
    }
  }
  LOGGER.info("String_Node_Str" + enabledRendererConfs.size() + "String_Node_Str");
  for (  RendererConfiguration r : enabledRendererConfs) {
    LOGGER.info("String_Node_Str" + r);
  }
  if (enabledRendererConfs.size() > 0) {
    String rendererFallback=pmsConf.getRendererDefault();
    if (StringUtils.isNotBlank(rendererFallback)) {
      RendererConfiguration fallbackConf=getRendererConfigurationByName(rendererFallback);
      if (fallbackConf != null) {
        defaultConf=fallbackConf;
      }
    }
  }
  DeviceConfiguration.loadDeviceConfigurations(pmsConf);
}

Fixed version (ground truth):
/** 
 * Load all renderer configuration files and set up the default renderer.
 * @param pmsConf
 */
public static void loadRendererConfigurations(PmsConfiguration pmsConf){
  _pmsConfiguration=pmsConf;
  enabledRendererConfs=new TreeSet<>(rendererLoadingPriorityComparator);
  try {
    defaultConf=new RendererConfiguration();
  }
 catch (  ConfigurationException e) {
    LOGGER.debug("String_Node_Str",e);
  }
  File renderersDir=getRenderersDir();
  if (renderersDir != null) {
    LOGGER.info("String_Node_Str" + renderersDir.getAbsolutePath());
    File[] confs=renderersDir.listFiles();
    Arrays.sort(confs);
    int rank=1;
    List<String> selectedRenderers=pmsConf.getSelectedRenderers();
    for (    File f : confs) {
      if (f.getName().endsWith("String_Node_Str")) {
        try {
          RendererConfiguration r=new RendererConfiguration(f);
          r.rank=rank++;
          String rendererName=r.getRendererName();
          String renderersGroup=null;
          if (rendererName.indexOf("String_Node_Str") > 0) {
            renderersGroup=rendererName.substring(0,rendererName.indexOf("String_Node_Str"));
          }
          if (selectedRenderers.contains(rendererName) || selectedRenderers.contains(renderersGroup) || selectedRenderers.contains(pmsConf.ALL_RENDERERS)) {
            enabledRendererConfs.add(r);
          }
 else {
            LOGGER.debug("String_Node_Str" + rendererName + "String_Node_Str");
          }
        }
 catch (        ConfigurationException ce) {
          LOGGER.info("String_Node_Str" + f.getAbsolutePath());
        }
      }
    }
  }
  LOGGER.info("String_Node_Str" + enabledRendererConfs.size() + "String_Node_Str");
  for (  RendererConfiguration r : enabledRendererConfs) {
    LOGGER.info("String_Node_Str" + r);
  }
  if (enabledRendererConfs.size() > 0) {
    String rendererFallback=pmsConf.getRendererDefault();
    if (StringUtils.isNotBlank(rendererFallback)) {
      RendererConfiguration fallbackConf=getRendererConfigurationByName(rendererFallback);
      if (fallbackConf != null) {
        defaultConf=fallbackConf;
      }
    }
  }
  DeviceConfiguration.loadDeviceConfigurations(pmsConf);
}