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

NullPointerException in PDType1Font.generateBoundingBox

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2, 2.0.3, 3.0.0 PDFBox
    • Fix Version/s: 2.0.3, 3.0.0 PDFBox
    • Component/s: Rendering
    • Labels:
      None

      Description

      Caused by: java.lang.NullPointerException: null
          org.apache.pdfbox.pdmodel.font.PDType1Font.generateBoundingBox(PDType1Font.java:519)
          org.apache.pdfbox.pdmodel.font.PDType1Font.getBoundingBox(PDType1Font.java:509)
          org.apache.pdfbox.text.LegacyPDFStreamEngine.showGlyph(LegacyPDFStreamEngine.java:162)
          org.apache.pdfbox.contentstream.PDFStreamEngine.showText(PDFStreamEngine.java:715)
      

      The cause is an empty font descriptor and a missing check for null. I'll add the check at other places too.

        Attachments

        1. PDFJS-2099.pdf
          3 kB
          Tilman Hausherr

          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: