pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-4235) NPE when setting the DA of a PDTextField
Date Thu, 31 May 2018 18:26:00 GMT

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

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

Commit 1832638 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1832638 ]

PDFBOX-4235: IllegalArgumentException instead of IllegalStateException

> NPE when setting the DA of a PDTextField
> ----------------------------------------
>
>                 Key: PDFBOX-4235
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4235
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm
>    Affects Versions: 2.0.9
>            Reporter: Christoph Grimmer-Dietrich
>            Priority: Major
>         Attachments: F2_Datenblatt_022015.pdf, stacktrace.txt
>
>
> The following Kotlin Code results in a NullPointerException:
> {{when(pdField) {}}
> {{is PDTextField -> {}}
> {{     try {}}
> {{         pdField.value = value?.toString() ?: ""}}
> {{     } catch (ioException: IOException) {}}
> {{         pdField.cosObject.setString(COSName.DA, "/Helv 0 tf 0 g")}}
> {{         pdField.value = value?.toString() ?: ""}}
> {{    }}}
> }}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message