Program: 72353
Project: 72353
Buggy source:
protected IReportLayoutEngine createReportLayoutEngine(String pagination,IRenderOption options){
  IReportLayoutEngine layoutEngine=LayoutEngineFactory.createLayoutEngine(pagination);
  if (options != null) {
    Object fitToPage=renderOptions.getOption(IPDFRenderOption.FIT_TO_PAGE);
    if (fitToPage != null) {
      layoutEngine.setOption(IPDFRenderOption.FIT_TO_PAGE,fitToPage);
    }
    Object pagebreakOnly=renderOptions.getOption(IPDFRenderOption.PAGEBREAK_PAGINATION_ONLY);
    if (pagebreakOnly != null) {
      layoutEngine.setOption(IPDFRenderOption.PAGEBREAK_PAGINATION_ONLY,pagebreakOnly);
    }
    Object pageOverflow=renderOptions.getOption(IPDFRenderOption.PAGE_OVERFLOW);
    if (pageOverflow != null) {
      layoutEngine.setOption(IPDFRenderOption.PAGE_OVERFLOW,pageOverflow);
    }
    Object outputDisplayNone=renderOptions.getOption(IPDFRenderOption.OUTPUT_DISPLAY_NONE);
    if (outputDisplayNone != null) {
      layoutEngine.setOption(IPDFRenderOption.OUTPUT_DISPLAY_NONE,outputDisplayNone);
    }
    Object pdfTextWrapping=renderOptions.getOption(IPDFRenderOption.PDF_TEXT_WRAPPING);
    if (pdfTextWrapping != null) {
      layoutEngine.setOption(IPDFRenderOption.PDF_TEXT_WRAPPING,pdfTextWrapping);
    }
    Object pdfFontSubstitution=renderOptions.getOption(IPDFRenderOption.PDF_FONT_SUBSTITUTION);
    if (pdfFontSubstitution != null) {
      layoutEngine.setOption(IPDFRenderOption.PDF_FONT_SUBSTITUTION,pdfFontSubstitution);
    }
    Object pdfBidiProcessing=renderOptions.getOption(IPDFRenderOption.PDF_BIDI_PROCESSING);
    if (pdfBidiProcessing != null) {
      layoutEngine.setOption(IPDFRenderOption.PDF_BIDI_PROCESSING,pdfBidiProcessing);
    }
    Object pdfHyphenation=renderOptions.getOption(IPDFRenderOption.PDF_HYPHENATION);
    if (pdfHyphenation != null) {
      layoutEngine.setOption(IPDFRenderOption.PDF_HYPHENATION,pdfHyphenation);
    }
  }
  layoutEngine.setOption(TASK_TYPE,new Integer(taskType));
  return layoutEngine;
}

Fixed version (ground truth):
protected IReportLayoutEngine createReportLayoutEngine(String pagination,IRenderOption options){
  IReportLayoutEngine layoutEngine=LayoutEngineFactory.createLayoutEngine(pagination);
  if (options != null) {
    Object fitToPage=renderOptions.getOption(IPDFRenderOption.FIT_TO_PAGE);
    if (fitToPage != null) {
      layoutEngine.setOption(IPDFRenderOption.FIT_TO_PAGE,fitToPage);
    }
    Object pagebreakOnly=renderOptions.getOption(IPDFRenderOption.PAGEBREAK_PAGINATION_ONLY);
    if (pagebreakOnly != null) {
      layoutEngine.setOption(IPDFRenderOption.PAGEBREAK_PAGINATION_ONLY,pagebreakOnly);
    }
    Object pageOverflow=renderOptions.getOption(IPDFRenderOption.PAGE_OVERFLOW);
    if (pageOverflow != null) {
      layoutEngine.setOption(IPDFRenderOption.PAGE_OVERFLOW,pageOverflow);
    }
    Object outputDisplayNone=renderOptions.getOption(IPDFRenderOption.OUTPUT_DISPLAY_NONE);
    if (outputDisplayNone != null) {
      layoutEngine.setOption(IPDFRenderOption.OUTPUT_DISPLAY_NONE,outputDisplayNone);
    }
    Object pdfTextWrapping=renderOptions.getOption(IPDFRenderOption.PDF_TEXT_WRAPPING);
    if (pdfTextWrapping != null) {
      layoutEngine.setOption(IPDFRenderOption.PDF_TEXT_WRAPPING,pdfTextWrapping);
    }
    Object pdfFontSubstitution=renderOptions.getOption(IPDFRenderOption.PDF_FONT_SUBSTITUTION);
    if (pdfFontSubstitution != null) {
      layoutEngine.setOption(IPDFRenderOption.PDF_FONT_SUBSTITUTION,pdfFontSubstitution);
    }
    layoutEngine.setOption(IRenderOption.RTL_FLAG,renderOptions.getOption(IRenderOption.RTL_FLAG));
    Object pdfBidiProcessing=renderOptions.getOption(IPDFRenderOption.PDF_BIDI_PROCESSING);
    if (pdfBidiProcessing != null) {
      layoutEngine.setOption(IPDFRenderOption.PDF_BIDI_PROCESSING,pdfBidiProcessing);
    }
    Object pdfHyphenation=renderOptions.getOption(IPDFRenderOption.PDF_HYPHENATION);
    if (pdfHyphenation != null) {
      layoutEngine.setOption(IPDFRenderOption.PDF_HYPHENATION,pdfHyphenation);
    }
  }
  layoutEngine.setOption(TASK_TYPE,new Integer(taskType));
  return layoutEngine;
}