Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-589

Arg list is optional for some color seperations. However, code expects it to be set and causes a null pointer exception when drawing the pdf.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.0.0
    • 1.0.0
    • Writing
    • None
    • MacOS/Java6

    Description

      Here is a patch that includes the required additional check for null. And a PDF to test it with as well.

          1. Eclipse Workspace Patch 1.0
            #P pdfbox
            Index: src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingSeparation.java
            ===================================================================
          • src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingSeparation.java (revision 1818)
            +++ src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingSeparation.java (working copy)
            @@ -61,7 +61,9 @@
            {
            PDSeparation sep = (PDSeparation) colorSpace;
            colorSpace = sep.getAlternateColorSpace();
      • argList = sep.getColorValues().toList();
        + if (sep.getColorValues() != null) { + argList = sep.getColorValues().toList(); + }

        }

      if (colorSpace != null)

      Attachments

        1. 1583A Newborn Record.pdf
          193 kB
          Yonas Jongkind

        Issue Links

          Activity

            People

              lehmi Andreas Lehmkühler
              yonas.jongkind@gmail.com Yonas Jongkind
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: