Program: 68036
Project: 68036
Buggy source:
/** 
 * Outputs the flash.
 * @param ele
 * @param cssStyles
 * @param content
 */
protected static void outputFlash(Element ele,Map cssStyles,IContent content){
  String src=null;
  String flashVars=null;
  NodeList list=ele.getElementsByTagName(PROPERTY_PARAM);
  for (int i=0; i < list.getLength(); i++) {
    Node node=list.item(i);
    if (node instanceof Element) {
      if ("String_Node_Str".equalsIgnoreCase(((Element)node).getAttribute(PROPERTY_NAME))) {
        src=((Element)node).getAttribute(PROPERTY_VALUE);
      }
 else       if ("String_Node_Str".equalsIgnoreCase(((Element)node).getAttribute(PROPERTY_NAME))) {
        flashVars=((Element)node).getAttribute(PROPERTY_VALUE);
      }
    }
  }
  if (src != null) {
    ObjectContent flash=(ObjectContent)((ReportContent)(content.getReportContent())).createObjectContent();
    flash.setExtension("String_Node_Str");
    flash.setMIMEType("String_Node_Str");
    addChild(content,flash);
    handleStyle(ele,cssStyles,flash);
    if (!FileUtil.isLocalResource(src)) {
      flash.setImageSource(IImageContent.IMAGE_URL);
      flash.setURI(src);
    }
 else {
      ReportDesignHandle handle=content.getReportContent().getDesign().getReportDesign();
      URL url=handle.findResource(src,IResourceLocator.IMAGE,content.getReportContent().getReportContext() == null ? null : content.getReportContent().getReportContext().getAppContext());
      if (url != null) {
        src=url.toString();
      }
      flash.setImageSource(IImageContent.IMAGE_FILE);
      flash.setURI(src);
    }
    IForeignContent foreign=getForeignRoot(content);
    if (null != foreign) {
      flash.setWidth(foreign.getWidth());
      flash.setHeight(foreign.getHeight());
    }
    if (flashVars != null && !"String_Node_Str".equals(flashVars)) {
      flash.addParam("String_Node_Str",flashVars);
    }
    String alt=ele.getAttribute(PROPERTY_ALT);
    if (alt != null && !"String_Node_Str".equals(alt)) {
      flash.setAltText(alt);
    }
  }
}

Fixed version (ground truth):
/** 
 * Outputs the flash.
 * @param ele
 * @param cssStyles
 * @param content
 */
protected static void outputFlash(Element ele,Map cssStyles,IContent content){
  String src=null;
  String flashVars=null;
  String alt=null;
  NodeList list=ele.getElementsByTagName(PROPERTY_PARAM);
  for (int i=0; i < list.getLength(); i++) {
    Node node=list.item(i);
    if (node instanceof Element) {
      if ("String_Node_Str".equalsIgnoreCase(((Element)node).getAttribute(PROPERTY_NAME))) {
        src=((Element)node).getAttribute(PROPERTY_VALUE);
      }
 else       if ("String_Node_Str".equalsIgnoreCase(((Element)node).getAttribute(PROPERTY_NAME))) {
        flashVars=((Element)node).getAttribute(PROPERTY_VALUE);
      }
 else       if ("String_Node_Str".equalsIgnoreCase(((Element)node).getAttribute(PROPERTY_NAME))) {
        alt=((Element)node).getAttribute(PROPERTY_VALUE);
      }
    }
  }
  if (src != null) {
    ObjectContent flash=(ObjectContent)((ReportContent)(content.getReportContent())).createObjectContent();
    flash.setExtension("String_Node_Str");
    flash.setMIMEType("String_Node_Str");
    addChild(content,flash);
    handleStyle(ele,cssStyles,flash);
    if (!FileUtil.isLocalResource(src)) {
      flash.setImageSource(IImageContent.IMAGE_URL);
      flash.setURI(src);
    }
 else {
      ReportDesignHandle handle=content.getReportContent().getDesign().getReportDesign();
      URL url=handle.findResource(src,IResourceLocator.IMAGE,content.getReportContent().getReportContext() == null ? null : content.getReportContent().getReportContext().getAppContext());
      if (url != null) {
        src=url.toString();
      }
      flash.setImageSource(IImageContent.IMAGE_FILE);
      flash.setURI(src);
    }
    IForeignContent foreign=getForeignRoot(content);
    if (null != foreign) {
      flash.setWidth(foreign.getWidth());
      flash.setHeight(foreign.getHeight());
    }
    if (flashVars != null && !"String_Node_Str".equals(flashVars)) {
      flash.addParam("String_Node_Str",flashVars);
    }
    if (alt == null) {
      alt=ele.getAttribute(PROPERTY_ALT);
    }
    if (alt != null && !"String_Node_Str".equals(alt)) {
      flash.setAltText(alt);
    }
  }
}