Christoph Grimmer-Dietrich created PDFBOX-4235:
--------------------------------------------------
Summary: 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: PDModel
Affects Versions: 2.0.9
Reporter: Christoph Grimmer-Dietrich
Attachments: 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: [email protected]
For additional commands, e-mail: [email protected]