[
https://issues.apache.org/jira/browse/PDFBOX-3479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15456114#comment-15456114
]
ASF subversion and git services commented on PDFBOX-3479:
---------------------------------------------------------
Commit 1758819 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1758819 ]
PDFBOX-3479: avoid NPE if no rectangle in widget
> 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
>
>
> 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]