Program: 99667
Project: 99667
Buggy source:
@Override public void leave(){
  final Set<Tag> allowedTags=self.getAllowedSubTags();
  final Set<Intent> overrideTargets=new HashSet<Intent>();
  while (parserStack.peek() != self) {
    Tag current=parserStack.pop();
    if (allowedTags.contains(current)) {
      if (current == Tag.INTENT) {
        Object oIntent=attributesHistory.get(Tag.INTENT).peek();
        if (oIntent == null) {
          throw new IllegalStateException("String_Node_Str" + "String_Node_Str" + attributesHistory.get(Attr.NAME));
        }
 else         if (oIntent instanceof Intent) {
          overrideTargets.add((Intent)oIntent);
        }
 else {
          throw new IllegalStateException("String_Node_Str" + oIntent.getClass().toString());
        }
      }
 else {
        throw new IllegalStateException("String_Node_Str");
      }
      current.getHandler().popAttributes();
    }
 else {
      throw new IllegalStateException("String_Node_Str" + self + "String_Node_Str"+ current+ "String_Node_Str"+ parserStack+ "String_Node_Str"+ "String_Node_Str"+ allowedTags);
    }
  }
  final String pack;
  if ((attributesHistory.get(Attr.PACKAGE) != null) && (!(attributesHistory.get(Attr.PACKAGE).isEmpty()))) {
    pack=(String)attributesHistory.get(Attr.PACKAGE).peek();
  }
 else {
    logger.warn("String_Node_Str",attributesHistory.get(Attr.PACKAGE).peek());
    pack=null;
  }
  final String name=(String)attributesHistory.get(Attr.NAME).peek();
  final Intent intent=AndroidSettingFactory.intent(pack,name,null);
  logger.info("String_Node_Str",intent);
  AndroidEntryPointManager.MANAGER.registerIntent(intent);
  for (  Intent ovr : overrideTargets) {
    logger.info("String_Node_Str",ovr,intent);
    AndroidEntryPointManager.MANAGER.setOverride(ovr,intent);
  }
}

Fixed version (ground truth):
@Override public void leave(){
  final Set<Tag> allowedTags=self.getAllowedSubTags();
  final Set<Intent> overrideTargets=new HashSet<Intent>();
  while (parserStack.peek() != self) {
    Tag current=parserStack.pop();
    if (allowedTags.contains(current)) {
      if (current == Tag.INTENT) {
        if (attributesHistory.get(Tag.INTENT).isEmpty())         continue;
        Object oIntent=attributesHistory.get(Tag.INTENT).peek();
        if (oIntent == null) {
          throw new IllegalStateException("String_Node_Str" + "String_Node_Str" + attributesHistory.get(Attr.NAME));
        }
 else         if (oIntent instanceof Intent) {
          overrideTargets.add((Intent)oIntent);
        }
 else {
          throw new IllegalStateException("String_Node_Str" + oIntent.getClass().toString());
        }
      }
 else {
        throw new IllegalStateException("String_Node_Str");
      }
      current.getHandler().popAttributes();
    }
 else {
      throw new IllegalStateException("String_Node_Str" + self + "String_Node_Str"+ current+ "String_Node_Str"+ parserStack+ "String_Node_Str"+ "String_Node_Str"+ allowedTags);
    }
  }
  final String pack;
  if ((attributesHistory.get(Attr.PACKAGE) != null) && (!(attributesHistory.get(Attr.PACKAGE).isEmpty()))) {
    pack=(String)attributesHistory.get(Attr.PACKAGE).peek();
  }
 else {
    logger.warn("String_Node_Str",attributesHistory.get(Attr.PACKAGE).peek());
    pack=null;
  }
  final String name;
  if (self == Tag.ALIAS) {
    name=(String)attributesHistory.get(Attr.TARGET).peek();
  }
 else {
    name=(String)attributesHistory.get(Attr.NAME).peek();
  }
  final Intent intent=AndroidSettingFactory.intent(pack,name,null);
  logger.info("String_Node_Str",intent);
  AndroidEntryPointManager.MANAGER.registerIntent(intent);
  for (  Intent ovr : overrideTargets) {
    logger.info("String_Node_Str",ovr,intent);
    if (ovr.equals(intent)) {
      AndroidEntryPointManager.MANAGER.registerIntent(intent);
    }
 else {
      AndroidEntryPointManager.MANAGER.setOverride(ovr,intent);
    }
  }
}