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

NullpointerException with PDFDebugger

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.19
    • 2.0.20, 3.0.0 PDFBox
    • Parsing
    • None

    Description

      the attached PDF is showing an exception when opened on PDFDebugger:

       

      java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.NullPointerException
      {{ org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.done(PagePane.java:434)}}
      {{ sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)}}
      {{ java.security.AccessController.doPrivileged(Native Method)}}
      {{ java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)}}
      Caused by: java.util.concurrent.ExecutionException: java.lang.NullPointerException
      {{ org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.done(PagePane.java:414)}}
      {{ sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)}}
      {{ java.security.AccessController.doPrivileged(Native Method)}}
      {{ java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)}}
      Caused by: java.lang.NullPointerException: null
      {{ org.apache.pdfbox.pdmodel.font.PDCIDFontType2.codeToGID(PDCIDFontType2.java:267)}}
      {{ org.apache.pdfbox.pdmodel.font.PDType0Font.codeToGID(PDType0Font.java:547)}}
      {{ org.apache.pdfbox.rendering.TTFGlyph2D.getGIDForCharacterCode(TTFGlyph2D.java:101)}}
      {{ org.apache.pdfbox.rendering.TTFGlyph2D.getPathForCharacterCode(TTFGlyph2D.java:92)}}
      {{ org.apache.pdfbox.rendering.PageDrawer.drawGlyph2D(PageDrawer.java:468)}}
      {{ org.apache.pdfbox.rendering.PageDrawer.showFontGlyph(PageDrawer.java:449)}}
      {{ org.apache.pdfbox.contentstream.PDFStreamEngine.showGlyph(PDFStreamEngine.java:785)}}
      {{ org.apache.pdfbox.contentstream.PDFStreamEngine.showText(PDFStreamEngine.java:741)}}
      {{ org.apache.pdfbox.contentstream.PDFStreamEngine.showTextString(PDFStreamEngine.java:601)}}
      {{ org.apache.pdfbox.contentstream.operator.text.ShowText.process(ShowText.java:56)}}
      {{ org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:875)}}
      {{ org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:509)}}
      {{ org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:483)}}
      {{ org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:156)}}
      {{ org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:270)}}
      {{ org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:321)}}
      {{ org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:402)}}
      {{ org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:384)}}
      {{ java.lang.Thread.run(Thread.java:745)}}

      Attachments

        1. pmc4531940.pdf
          109 kB
          Stefano Padovan

        Activity

          People

            tilman Tilman Hausherr
            spadovan Stefano Padovan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: