Program: 167393
Project: 167393
Buggy source:
@Override protected void start(){
  super.start();
  TypedProperties properties=getTypedProperties();
  optimizeForSpeed=properties.is("String_Node_Str");
  rowsPerMessage=properties.getInt(ROWS_PER_MESSAGE);
  Model model=getComponent().getOutputModel();
  if (model == null) {
    throw new IllegalStateException("String_Node_Str");
  }
  entitySettings=new ArrayList<XmlParser.XmlFormatterEntitySetting>();
  Component component=getComponent();
  for (  ComponentEntitySetting compEntitySetting : component.getEntitySettings()) {
    if (compEntitySetting.getName().equals(XML_FORMATTER_XPATH)) {
      XPathExpression<?> expression=XPathFactory.instance().compile(compEntitySetting.getValue());
      XmlFormatterEntitySetting entitySetting=new XmlFormatterEntitySetting(compEntitySetting,expression);
      entitySettings.add(entitySetting);
      entitySettingsByPath.put(compEntitySetting.getValue(),entitySetting);
      List<ComponentAttributeSetting> attributeSettings=component.getAttributeSettingsFor(entitySetting.getSetting().getEntityId());
      for (      ComponentAttributeSetting componentAttributeSetting : attributeSettings) {
        if (componentAttributeSetting.getName().equals(XML_FORMATTER_XPATH)) {
          expression=XPathFactory.instance().compile(componentAttributeSetting.getValue());
          entitySetting.getAttributeSettings().add(new XmlFormatterAttributeSetting(componentAttributeSetting,expression));
        }
      }
    }
  }
  if (entitySettings.size() == 0) {
    throw new MisconfiguredException("String_Node_Str");
  }
}

Fixed version (ground truth):
@Override protected void start(){
  super.start();
  TypedProperties properties=getTypedProperties();
  optimizeForSpeed=properties.is("String_Node_Str");
  rowsPerMessage=properties.getInt(ROWS_PER_MESSAGE);
  Model model=getComponent().getOutputModel();
  if (model == null) {
    throw new IllegalStateException("String_Node_Str");
  }
  List<XmlFormatterEntitySetting> entitySettingsForPath;
  Component component=getComponent();
  for (  ComponentEntitySetting compEntitySetting : component.getEntitySettings()) {
    if (compEntitySetting.getName().equals(XML_FORMATTER_XPATH)) {
      XPathExpression<?> expression=XPathFactory.instance().compile(compEntitySetting.getValue());
      XmlFormatterEntitySetting entitySetting=new XmlFormatterEntitySetting(compEntitySetting,expression);
      entitySettingsForPath=entitySettingsByPath.get(compEntitySetting.getValue());
      if (entitySettingsForPath == null) {
        entitySettingsForPath=new ArrayList<XmlParser.XmlFormatterEntitySetting>();
        entitySettingsByPath.put(compEntitySetting.getValue(),entitySettingsForPath);
      }
      entitySettingsForPath.add(entitySetting);
      entitySettings.add(entitySetting);
      List<ComponentAttributeSetting> attributeSettings=component.getAttributeSettingsFor(entitySetting.getSetting().getEntityId());
      for (      ComponentAttributeSetting componentAttributeSetting : attributeSettings) {
        if (componentAttributeSetting.getName().equals(XML_FORMATTER_XPATH)) {
          expression=XPathFactory.instance().compile(componentAttributeSetting.getValue());
          entitySetting.getAttributeSettings().add(new XmlFormatterAttributeSetting(componentAttributeSetting,expression));
        }
      }
    }
  }
  if (entitySettings.size() == 0) {
    throw new MisconfiguredException("String_Node_Str");
  }
}