Program: 60977
Project: 60977
Buggy source:
@PreAuthorize("String_Node_Str") @RequestMapping(method=RequestMethod.GET,value="String_Node_Str") public List<ConnBundleTO> getBundles() throws NotFoundException, MissingConfKeyException {
  ConnectorInfoManager manager=connBundleManager.getConnectorManager();
  List<ConnectorInfo> bundles=manager.getConnectorInfos();
  if (LOG.isDebugEnabled() && bundles != null) {
    LOG.debug("String_Node_Str",bundles.size());
    for (    ConnectorInfo bundle : bundles) {
      LOG.debug("String_Node_Str",bundle.getConnectorDisplayName());
    }
  }
  ConnBundleTO connectorBundleTO;
  ConnectorKey key;
  ConfigurationProperties properties;
  List<ConnBundleTO> connectorBundleTOs=new ArrayList<ConnBundleTO>();
  if (bundles != null) {
    for (    ConnectorInfo bundle : bundles) {
      connectorBundleTO=new ConnBundleTO();
      connectorBundleTO.setDisplayName(bundle.getConnectorDisplayName());
      key=bundle.getConnectorKey();
      LOG.debug("String_Node_Str" + "String_Node_Str" + "String_Node_Str",new Object[]{key.getBundleName(),key.getBundleVersion(),key.getConnectorName()});
      connectorBundleTO.setBundleName(key.getBundleName());
      connectorBundleTO.setConnectorName(key.getConnectorName());
      connectorBundleTO.setVersion(key.getBundleVersion());
      properties=bundle.createDefaultAPIConfiguration().getConfigurationProperties();
      ConnConfPropSchema connConfPropSchema;
      ConfigurationProperty configurationProperty;
      for (      String propName : properties.getPropertyNames()) {
        connConfPropSchema=new ConnConfPropSchema();
        configurationProperty=properties.getProperty(propName);
        connConfPropSchema.setName(configurationProperty.getName());
        connConfPropSchema.setDisplayName(configurationProperty.getDisplayName(propName));
        connConfPropSchema.setHelpMessage(configurationProperty.getHelpMessage(propName));
        connConfPropSchema.setRequired(configurationProperty.isRequired());
        connConfPropSchema.setType(configurationProperty.getType().getName());
        connectorBundleTO.addProperty(connConfPropSchema);
      }
      LOG.debug("String_Node_Str",connectorBundleTO.getProperties());
      connectorBundleTOs.add(connectorBundleTO);
    }
  }
  return connectorBundleTOs;
}

Fixed version (ground truth):
@PreAuthorize("String_Node_Str") @RequestMapping(method=RequestMethod.GET,value="String_Node_Str") public List<ConnBundleTO> getBundles() throws NotFoundException, MissingConfKeyException {
  ConnectorInfoManager manager=connBundleManager.getConnectorManager();
  List<ConnectorInfo> bundles=manager.getConnectorInfos();
  if (LOG.isDebugEnabled() && bundles != null) {
    LOG.debug("String_Node_Str",bundles.size());
    for (    ConnectorInfo bundle : bundles) {
      LOG.debug("String_Node_Str",bundle.getConnectorDisplayName());
    }
  }
  ConnBundleTO connectorBundleTO;
  ConnectorKey key;
  ConfigurationProperties properties;
  List<ConnBundleTO> connectorBundleTOs=new ArrayList<ConnBundleTO>();
  if (bundles != null) {
    for (    ConnectorInfo bundle : bundles) {
      connectorBundleTO=new ConnBundleTO();
      connectorBundleTO.setDisplayName(bundle.getConnectorDisplayName());
      key=bundle.getConnectorKey();
      LOG.debug("String_Node_Str" + "String_Node_Str" + "String_Node_Str",new Object[]{key.getBundleName(),key.getBundleVersion(),key.getConnectorName()});
      connectorBundleTO.setBundleName(key.getBundleName());
      connectorBundleTO.setConnectorName(key.getConnectorName());
      connectorBundleTO.setVersion(key.getBundleVersion());
      properties=connBundleManager.getConfigurationProperties(bundle);
      ConnConfPropSchema connConfPropSchema;
      ConfigurationProperty configurationProperty;
      for (      String propName : properties.getPropertyNames()) {
        connConfPropSchema=new ConnConfPropSchema();
        configurationProperty=properties.getProperty(propName);
        connConfPropSchema.setName(configurationProperty.getName());
        connConfPropSchema.setDisplayName(configurationProperty.getDisplayName(propName));
        connConfPropSchema.setHelpMessage(configurationProperty.getHelpMessage(propName));
        connConfPropSchema.setRequired(configurationProperty.isRequired());
        connConfPropSchema.setType(configurationProperty.getType().getName());
        connectorBundleTO.addProperty(connConfPropSchema);
      }
      LOG.debug("String_Node_Str",connectorBundleTO.getProperties());
      connectorBundleTOs.add(connectorBundleTO);
    }
  }
  return connectorBundleTOs;
}