java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Null Pointer Exception when trying to setField
    via Stack Overflow by uksz
    ,
    • java.lang.NullPointerException: null at org.apache.pdfbox.pdmodel.PDResources.add(PDResources.java:675)[pdfbox-app-2.0.3.jar:2.0.3] at org.apache.pdfbox.pdmodel.PDResources.add(PDResources.java:573)[pdfbox-app-2.0.3.jar:2.0.3] at org.apache.pdfbox.pdmodel.PDPageContentStream.getName(PDPageContentStream.java:964)[pdfbox-app-2.0.3.jar:2.0.3] at org.apache.pdfbox.pdmodel.PDPageContentStream.setStrokingColor(PDPageContentStream.java:979)[pdfbox-app-2.0.3.jar:2.0.3] at org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.initializeAppearanceContent(AppearanceGeneratorHelper.java:221)[pdfbox-app-2.0.3.jar:2.0.3] at org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.setAppearanceValue(AppearanceGeneratorHelper.java:167)[pdfbox-app-2.0.3.jar:2.0.3] at org.apache.pdfbox.pdmodel.interactive.form.PDTextField.constructAppearances(PDTextField.java:263)[pdfbox-app-2.0.3.jar:2.0.3] at org.apache.pdfbox.pdmodel.interactive.form.PDTerminalField.applyChange(PDTerminalField.java:228)[pdfbox-app-2.0.3.jar:2.0.3] at org.apache.pdfbox.pdmodel.interactive.form.PDTextField.setValue(PDTextField.java:218)[pdfbox-app-2.0.3.jar:2.0.3]
    No Bugmate found.