[
https://issues.apache.org/jira/browse/PDFBOX-3726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15933658#comment-15933658
]
ASF subversion and git services commented on PDFBOX-3726:
---------------------------------------------------------
Commit 1787854 from [~msahyoun] in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1787854 ]
PDFBOX-3726: avoid NPE when updating the appearance and the NormalAppearance is
COSNull
> NPE when setting the field value in an AcroForm and the NormalAppearance
> entry exists but is COSNull
> ----------------------------------------------------------------------------------------------------
>
> Key: PDFBOX-3726
> URL: https://issues.apache.org/jira/browse/PDFBOX-3726
> Project: PDFBox
> Issue Type: Bug
> Components: AcroForm
> Affects Versions: 2.0.5, 2.1.0
> Reporter: Maruan Sahyoun
> Assignee: Maruan Sahyoun
> Fix For: 2.0.6, 2.1.0
>
>
> When the {{NormalAppearance}} entry exists in a {{PDAnnotationWidget}} but
> the entry is {{COSNull}} and NPE is raised similar to
> {code}
> Exception in thread "main" java.lang.NullPointerException at
> org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.setAppearanceValue(AppearanceGeneratorHelper.java:137)
>
> {code}
> See PDFBOX-3723 for a sample.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]