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

NPE when drawing annotation with empty border color array

    Details

      Description

      Caused by: java.lang.NullPointerException: null
          org.apache.pdfbox.rendering.PageDrawer.getPaint(PageDrawer.java:237)
          org.apache.pdfbox.rendering.PageDrawer.drawAnnotationLinkBorder(PageDrawer.java:1035)
          org.apache.pdfbox.rendering.PageDrawer.showAnnotation(PageDrawer.java:949)
          org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:193)
          org.apache.pdfbox.rendering.PDFRenderer.renderPage(PDFRenderer.java:208)
          org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:139)
          org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:68)
      

      The /C array is empty, this currently results in a PDColor with empty array and null colorspace. The specification mentions "no color; transparent".

        Attachments

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              tilman Tilman Hausherr
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: