Program: 68597
Project: 68597
Buggy source:
/** 
 * load report item emitters extension definitions
 */
protected void loadEmitterExtensionDefns(){
  IExtension[] exts=getExtensions(EXTENSION_POINT_EMITTERS);
  if (exts == null) {
    return;
  }
  for (int i=0; i < exts.length; i++) {
    String namespace=exts[i].getNamespace();
    IConfigurationElement[] configs=exts[i].getConfigurationElements();
    for (int j=0; j < configs.length; j++) {
      String format=configs[j].getAttribute("String_Node_Str");
      String mimeType=configs[j].getAttribute("String_Node_Str");
      String id=configs[j].getAttribute("String_Node_Str");
      String pagination=configs[j].getAttribute("String_Node_Str");
      String supportedImageFormats=configs[j].getAttribute("String_Node_Str");
      if (pagination == null) {
        pagination=PAGE_BREAK_PAGINATION;
      }
      String icon=configs[j].getAttribute("String_Node_Str");
      Boolean outDisplayNone=new Boolean(configs[j].getAttribute("String_Node_Str"));
      String fileExtension=configs[j].getAttribute("String_Node_Str");
      Boolean isHidden=new Boolean(configs[j].getAttribute("String_Node_Str"));
      boolean needOutputResultSet=Boolean.valueOf(configs[j].getAttribute("String_Node_Str"));
      EmitterInfo emitterInfo=new EmitterInfo(format,id,pagination,mimeType,icon,namespace,fileExtension,outDisplayNone,isHidden,supportedImageFormats,needOutputResultSet,configs[j]);
      emitterExtensions.add(emitterInfo);
      assert(format != null);
      formats.put(format,emitterInfo);
      emitters.put(id,emitterInfo);
      logger.log(Level.FINE,"String_Node_Str",new String[]{format,id});
    }
  }
}

Fixed version (ground truth):
/** 
 * load report item emitters extension definitions
 */
protected void loadEmitterExtensionDefns(){
  IExtension[] exts=getExtensions(EXTENSION_POINT_EMITTERS);
  if (exts == null) {
    return;
  }
  for (int i=0; i < exts.length; i++) {
    String namespace=exts[i].getNamespace();
    IConfigurationElement[] configs=exts[i].getConfigurationElements();
    for (int j=0; j < configs.length; j++) {
      String id=configs[j].getAttribute("String_Node_Str");
      String overridePriority=configs[j].getAttribute("String_Node_Str");
      int priority=0;
      if (null != overridePriority) {
        priority=new Integer(overridePriority).intValue();
      }
      EmitterInfo info=(EmitterInfo)emitters.get(id);
      if (info != null) {
        if (info.getOverridePriority() >= priority) {
          continue;
        }
 else {
          emitterExtensions.remove(info);
        }
      }
      String format=configs[j].getAttribute("String_Node_Str");
      String mimeType=configs[j].getAttribute("String_Node_Str");
      String pagination=configs[j].getAttribute("String_Node_Str");
      String supportedImageFormats=configs[j].getAttribute("String_Node_Str");
      if (pagination == null) {
        pagination=PAGE_BREAK_PAGINATION;
      }
      String icon=configs[j].getAttribute("String_Node_Str");
      Boolean outDisplayNone=new Boolean(configs[j].getAttribute("String_Node_Str"));
      String fileExtension=configs[j].getAttribute("String_Node_Str");
      Boolean isHidden=new Boolean(configs[j].getAttribute("String_Node_Str"));
      boolean needOutputResultSet=Boolean.valueOf(configs[j].getAttribute("String_Node_Str"));
      EmitterInfo emitterInfo=new EmitterInfo(format,id,pagination,mimeType,icon,namespace,fileExtension,outDisplayNone,isHidden,supportedImageFormats,needOutputResultSet,configs[j]);
      emitterInfo.setOverridePriority(priority);
      emitterExtensions.add(emitterInfo);
      assert(format != null);
      formats.put(format,emitterInfo);
      emitters.put(id,emitterInfo);
      logger.log(Level.FINE,"String_Node_Str",new String[]{format,id});
    }
  }
}