Program: 82791
Project: 82791
Buggy source:
public void endElement(String uri,String localName,String qName) throws SAXException {
  if ((_organisation != null && _module != null && _revision != null) && _md.getModuleRevisionId() == null) {
    ModuleRevisionId mrid=ModuleRevisionId.newInstance(_organisation,_module,_revision);
    _md.setModuleRevisionId(mrid);
    _md.addArtifact("String_Node_Str",new DefaultArtifact(mrid,getDefaultPubDate(),_module,"String_Node_Str","String_Node_Str"));
    _organisation=null;
    _module=null;
    _revision=null;
  }
 else   if (((_organisation != null && _module != null && _revision != null) || _dd != null) && "String_Node_Str".equals(getContext())) {
    if (_dd == null) {
      _dd=new DefaultDependencyDescriptor(_md,ModuleRevisionId.newInstance(_organisation,_module,_revision),true,true,true);
    }
    _scope=_scope == null ? "String_Node_Str" : _scope;
    if (_optional && "String_Node_Str".equals(_scope)) {
      _scope="String_Node_Str";
    }
    String mapping=(String)MAVEN2_CONF_MAPPING.get(_scope);
    if (mapping == null) {
      Message.verbose("String_Node_Str" + _scope + "String_Node_Str"+ getResource());
      mapping=(String)MAVEN2_CONF_MAPPING.get("String_Node_Str");
    }
    if (_optional) {
      mapping=mapping.replaceAll(_scope + "String_Node_Str","String_Node_Str");
      if (_md.getConfiguration("String_Node_Str") == null) {
        _md.addConfiguration(OPTIONAL_CONFIGURATION);
      }
    }
    parseDepsConfs(mapping,_dd);
    for (Iterator iter=_exclusions.iterator(); iter.hasNext(); ) {
      ModuleId mid=(ModuleId)iter.next();
      String[] confs=_dd.getModuleConfigurations();
      for (int i=0; i < confs.length; i++) {
        _dd.addDependencyArtifactExcludes(confs[i],new DefaultDependencyArtifactDescriptor(_dd,new ArtifactId(mid,mid.getName(),"String_Node_Str","String_Node_Str"),false));
      }
    }
    _md.addDependency(_dd);
    _dd=null;
  }
 else   if ((_organisation != null && _module != null) && "String_Node_Str".equals(getContext())) {
    _exclusions.add(new ModuleId(_organisation,_module));
    _organisation=null;
    _module=null;
  }
  if ("String_Node_Str".equals(qName)) {
    _organisation=null;
    _module=null;
    _revision=null;
    _scope=null;
    _optional=false;
    _exclusions.clear();
  }
  _contextStack.pop();
}

Fixed version (ground truth):
public void endElement(String uri,String localName,String qName) throws SAXException {
  if ((_organisation != null && _module != null && _revision != null) && _md.getModuleRevisionId() == null) {
    ModuleRevisionId mrid=ModuleRevisionId.newInstance(_organisation,_module,_revision);
    _md.setModuleRevisionId(mrid);
    _md.addArtifact("String_Node_Str",new DefaultArtifact(mrid,getDefaultPubDate(),_module,"String_Node_Str","String_Node_Str"));
    _organisation=null;
    _module=null;
    _revision=null;
  }
 else   if (((_organisation != null && _module != null && _revision != null) || _dd != null) && "String_Node_Str".equals(getContext())) {
    if (_dd == null) {
      _dd=new DefaultDependencyDescriptor(_md,ModuleRevisionId.newInstance(_organisation,_module,_revision),true,false,true);
    }
    _scope=_scope == null ? "String_Node_Str" : _scope;
    if (_optional && "String_Node_Str".equals(_scope)) {
      _scope="String_Node_Str";
    }
    String mapping=(String)MAVEN2_CONF_MAPPING.get(_scope);
    if (mapping == null) {
      Message.verbose("String_Node_Str" + _scope + "String_Node_Str"+ getResource());
      mapping=(String)MAVEN2_CONF_MAPPING.get("String_Node_Str");
    }
    if (_optional) {
      mapping=mapping.replaceAll(_scope + "String_Node_Str","String_Node_Str");
      if (_md.getConfiguration("String_Node_Str") == null) {
        _md.addConfiguration(OPTIONAL_CONFIGURATION);
      }
    }
    parseDepsConfs(mapping,_dd);
    for (Iterator iter=_exclusions.iterator(); iter.hasNext(); ) {
      ModuleId mid=(ModuleId)iter.next();
      String[] confs=_dd.getModuleConfigurations();
      for (int i=0; i < confs.length; i++) {
        _dd.addDependencyArtifactExcludes(confs[i],new DefaultDependencyArtifactDescriptor(_dd,new ArtifactId(mid,mid.getName(),"String_Node_Str","String_Node_Str"),false));
      }
    }
    _md.addDependency(_dd);
    _dd=null;
  }
 else   if ((_organisation != null && _module != null) && "String_Node_Str".equals(getContext())) {
    _exclusions.add(new ModuleId(_organisation,_module));
    _organisation=null;
    _module=null;
  }
  if ("String_Node_Str".equals(qName)) {
    _organisation=null;
    _module=null;
    _revision=null;
    _scope=null;
    _optional=false;
    _exclusions.clear();
  }
  _contextStack.pop();
}