java.lang.NullPointerException: null

Stack Overflow | uksz | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Null Pointer Exception when trying to setField

    Stack Overflow | 5 months ago | uksz
    java.lang.NullPointerException: null

    Root Cause Analysis

    1. java.lang.NullPointerException

      null

      at org.apache.pdfbox.pdmodel.PDResources.add()
    2. Apache PDFBox
      PDTextField.setValue
      1. org.apache.pdfbox.pdmodel.PDResources.add(PDResources.java:675)[pdfbox-app-2.0.3.jar:2.0.3]
      2. org.apache.pdfbox.pdmodel.PDResources.add(PDResources.java:573)[pdfbox-app-2.0.3.jar:2.0.3]
      3. org.apache.pdfbox.pdmodel.PDPageContentStream.getName(PDPageContentStream.java:964)[pdfbox-app-2.0.3.jar:2.0.3]
      4. org.apache.pdfbox.pdmodel.PDPageContentStream.setStrokingColor(PDPageContentStream.java:979)[pdfbox-app-2.0.3.jar:2.0.3]
      5. org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.initializeAppearanceContent(AppearanceGeneratorHelper.java:221)[pdfbox-app-2.0.3.jar:2.0.3]
      6. org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.setAppearanceValue(AppearanceGeneratorHelper.java:167)[pdfbox-app-2.0.3.jar:2.0.3]
      7. org.apache.pdfbox.pdmodel.interactive.form.PDTextField.constructAppearances(PDTextField.java:263)[pdfbox-app-2.0.3.jar:2.0.3]
      8. org.apache.pdfbox.pdmodel.interactive.form.PDTerminalField.applyChange(PDTerminalField.java:228)[pdfbox-app-2.0.3.jar:2.0.3]
      9. org.apache.pdfbox.pdmodel.interactive.form.PDTextField.setValue(PDTextField.java:218)[pdfbox-app-2.0.3.jar:2.0.3]
      9 frames