[
https://issues.apache.org/jira/browse/PDFBOX-3479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maruan Sahyoun updated PDFBOX-3479:
-----------------------------------
Attachment: SimpleFormNoRect.pdf
SimpleFormNoRect.Acrobat.pdf
> NPE in AppearanceGeneratorHelper.setAppearanceValue() if no rectangle in
> widget
> -------------------------------------------------------------------------------
>
> Key: PDFBOX-3479
> URL: https://issues.apache.org/jira/browse/PDFBOX-3479
> Project: PDFBox
> Issue Type: Bug
> Components: AcroForm
> Affects Versions: 2.0.2, 2.0.3, 2.1.0
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Fix For: 2.0.3, 2.1.0
>
> Attachments: SimpleForm.pdf, SimpleForm2.pdf,
> SimpleFormNoRect.Acrobat.pdf, SimpleFormNoRect.pdf
>
>
> As reported in the linked stackoveflow question, can be reproduced with the
> CreateSimpleForm example by removing the {{widget.setRectangle(rect);}}.
> {code}
> java.lang.NullPointerException
> at
> org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.setAppearanceValue(AppearanceGeneratorHelper.java:137)
> at
> org.apache.pdfbox.pdmodel.interactive.form.PDTextField.constructAppearances(PDTextField.java:263)
> at
> org.apache.pdfbox.pdmodel.interactive.form.PDTerminalField.applyChange(PDTerminalField.java:225)
> at
> org.apache.pdfbox.pdmodel.interactive.form.PDTextField.setValue(PDTextField.java:218)
> {code}
> I'll throw an IOException.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]