You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/03/20 22:02:41 UTC

[jira] [Commented] (PDFBOX-3726) NPE when setting the field value in an AcroForm and the NormalAppearance entry exists but is COSNull

    [ https://issues.apache.org/jira/browse/PDFBOX-3726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15933657#comment-15933657 ] 

ASF subversion and git services commented on PDFBOX-3726:
---------------------------------------------------------

Commit 1787853 from [~msahyoun] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1787853 ]

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