java.lang.NullPointerException: null

Stack Overflow | uksz | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Null Pointer Exception when trying to setField

    Stack Overflow | 7 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