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

Avoid NPE when encountering null PDComplexFileSpecification

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.4
    • Fix Version/s: 1.8.5, 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      In some pdfs in the wild, PDComplexFileSpecification can be null. It would be great if we could skip those files that don't have any contents and not throw an NPE.

        Attachments

        1. null_PDComplexFileSpecification.pdf
          19 kB
          Tim Allison
        2. PDFBOX-1884.patch.zip
          15 kB
          Tim Allison

          Issue Links

            Activity

              People

              • Assignee:
                jahewson John Hewson
                Reporter:
                tallison@apache.org Tim Allison
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: