You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2016/09/01 17:42:20 UTC

[jira] [Resolved] (PDFBOX-3479) NPE in AppearanceGeneratorHelper.setAppearanceValue() if no rectangle in widget

     [ https://issues.apache.org/jira/browse/PDFBOX-3479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr resolved PDFBOX-3479.
-------------------------------------
    Resolution: Fixed

> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org