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

Exception in thread "main" java.lang.NullPointerException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.5
    • Fix Version/s: 2.0.6, 3.0.0 PDFBox
    • Component/s: Utilities
    • Labels:
    • Environment:
      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. TestMergePdf.java
          2 kB
          Durgesh Agrawal
        2. PDFMergerExample.java
          6 kB
          Durgesh Agrawal
        3. 0000001744905808.pdf
          35 kB
          Durgesh Agrawal
        4. 0000000013340857.pdf
          11 kB
          Durgesh Agrawal

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: