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

NPE when drawing annotation with empty border color array

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment