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

Exception in thread "main" java.lang.NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.5
    • 2.0.6, 3.0.0 PDFBox
    • Utilities
    • Java 1.8, Windows.

    Description

      Getting Nullpointer exception when running PDFMergerExample

      Exception in thread "main" java.lang.NullPointerException
      at org.apache.pdfbox.multipdf.PDFMergerUtility.appendDocument(PDFMergerUtility.java:432)
      at org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:261)
      at scrach_pad.batch_email.PDFMergerExample.merge(PDFMergerExample.java:87)
      at scrach_pad.batch_email.TestMergePdf.main(TestMergePdf.java:50)

      Attachments

        1. 0000001744905808.pdf
          35 kB
          Durgesh Agrawal
        2. 0000000013340857.pdf
          11 kB
          Durgesh Agrawal
        3. TestMergePdf.java
          2 kB
          Durgesh Agrawal
        4. PDFMergerExample.java
          6 kB
          Durgesh Agrawal

        Issue Links

          Activity

            People

              tilman Tilman Hausherr
              durgeshagrawak@gmail.com Durgesh Agrawal
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: