Program: 72532
Project: 72532
Buggy source:
/** 
 * Configure the different HLASubscribers (ie will make them suscribe to what they should)
 */
private void setUpHLASubscriber(RTIambassador rtia) throws NameNotFound, ObjectClassNotDefined, FederateNotExecutionMember, RTIinternalError, AttributeNotDefined, SaveInProgress, RestoreInProgress, ConcurrentAccessAttempted {
  Iterator<Entry<String,Object[]>> ot=_hlaAttributesSubscribedTo.entrySet().iterator();
  while (ot.hasNext()) {
    Map.Entry<String,Object[]> elt=ot.next();
    Object[] tObj=elt.getValue();
    TypedIOPort port=_getPortFromTab(tObj);
    int classHandle=rtia.getObjectClassHandle(_getClassNameFromTab(tObj));
    int objAttributeHandle=rtia.getAttributeHandle(((HlaSubscriber)port.getContainer()).getParameterName(),classHandle);
    elt.setValue(new Object[]{_getPortFromTab(tObj),_getTypeFromTab(tObj),_getClassNameFromTab(tObj),classHandle,objAttributeHandle});
  }
  HashMap<String,LinkedList<String>> classHandleHlaSubscriberTable=null;
  classHandleHlaSubscriberTable=new HashMap<String,LinkedList<String>>();
  Iterator<Entry<String,Object[]>> it4=_hlaAttributesSubscribedTo.entrySet().iterator();
  while (it4.hasNext()) {
    Map.Entry<String,Object[]> elt=it4.next();
    Object[] tObj=elt.getValue();
    String classHandleName=_getClassNameFromTab(tObj);
    if (classHandleHlaSubscriberTable.containsKey(classHandleName)) {
      classHandleHlaSubscriberTable.get(classHandleName).add(elt.getKey());
    }
 else {
      LinkedList<String> list=new LinkedList<String>();
      list.add(elt.getKey());
      classHandleHlaSubscriberTable.put(classHandleName,list);
    }
  }
  Iterator<Entry<String,LinkedList<String>>> it5=classHandleHlaSubscriberTable.entrySet().iterator();
  while (it5.hasNext()) {
    Map.Entry<String,LinkedList<String>> elt=it5.next();
    LinkedList<String> hlaSubList=elt.getValue();
    int classHandle=rtia.getObjectClassHandle(elt.getKey());
    AttributeHandleSet _attributesLocal=RtiFactoryFactory.getRtiFactory().createAttributeHandleSet();
    for (    String s : hlaSubList) {
      _attributesLocal.add(_getAttributeHandleFromTab(_hlaAttributesSubscribedTo.get(s)));
    }
    _rtia.subscribeObjectClassAttributes(classHandle,_attributesLocal);
  }
}

Fixed version (ground truth):
/** 
 * Configure the different HLASubscribers (ie will make them suscribe to what they should)
 */
private void setUpHLASubscriber(RTIambassador rtia) throws NameNotFound, ObjectClassNotDefined, FederateNotExecutionMember, RTIinternalError, AttributeNotDefined, SaveInProgress, RestoreInProgress, ConcurrentAccessAttempted {
  CompositeEntity container=(CompositeEntity)getContainer();
  List<ComponentEntity> classes=container.classDefinitionList();
  for (  ComponentEntity currentClass : classes) {
    try {
      int classHandle=rtia.getObjectClassHandle(currentClass.getName());
      _idToClasses.put(classHandle,currentClass);
      AttributeHandleSet _attributesLocal=RtiFactoryFactory.getRtiFactory().createAttributeHandleSet();
      List<HlaSubscriber> subscribers=((CompositeActor)currentClass).entityList(HlaSubscriber.class);
      for (      HlaSubscriber sub : subscribers) {
        int attributeHandle=rtia.getAttributeHandle(sub.getParameterName(),classHandle);
        _attributesLocal.add(attributeHandle);
      }
      rtia.subscribeObjectClassAttributes(classHandle,_attributesLocal);
    }
 catch (    Exception e) {
    }
  }
  Iterator<Entry<String,Object[]>> ot=_hlaAttributesSubscribedTo.entrySet().iterator();
  while (ot.hasNext()) {
    Map.Entry<String,Object[]> elt=ot.next();
    Object[] tObj=elt.getValue();
    TypedIOPort port=_getPortFromTab(tObj);
    int classHandle=rtia.getObjectClassHandle(_getClassNameFromTab(tObj));
    int objAttributeHandle=rtia.getAttributeHandle(((HlaSubscriber)port.getContainer()).getParameterName(),classHandle);
    elt.setValue(new Object[]{_getPortFromTab(tObj),_getTypeFromTab(tObj),_getClassNameFromTab(tObj),classHandle,objAttributeHandle});
  }
}