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

Exception in thread "main" java.lang.NullPointerException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.8.3, 2.0.0
    • Component/s: PDModel, Preflight
    • Labels:
      None
    • Environment:
      Redhat Linux

      Description

      This file is not a PDF/A by any means, but NullPointer's out with out error messages.

      php-5.4.8/ext/fileinfo/tests/resources/test.pdf :: Exception in thread "main" java.lang.NullPointerException
      at org.apache.pdfbox.pdmodel.graphics.xobject.PDXObject.createXObject(PDXObject.java:131)
      at org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validateGraphicObjects(SinglePageValidationProcess.java:145)
      at org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validate(SinglePageValidationProcess.java:78)
      at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:74)
      at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:49)
      at org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validatePage(PageTreeValidationProcess.java:56)
      at org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validate(PageTreeValidationProcess.java:45)
      at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:74)
      at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:88)
      at org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:168)
      at org.apache.pdfbox.preflight.Validator_A1b.runSimple(Validator_A1b.java:158)
      at org.apache.pdfbox.preflight.Validator_A1b.main(Validator_A1b.java:125)

        Attachments

        1. test.pdf
          2 kB
          William Fausser
        2. PDFBox-1627.patch
          4 kB
          Eric Leleu

          Activity

            People

            • Assignee:
              leleueri Eric Leleu
              Reporter:
              bfausser William Fausser
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: