[
https://issues.apache.org/jira/browse/PDFBOX-2161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14041205#comment-14041205
]
Tim Allison commented on PDFBOX-2161:
-------------------------------------
Not sure. I'm happy returning null if there is no retrievable value and we
modify the javadocs to say that getValue() could return a null or throw an
IOException.
Wait...duh...let's try something better. Patch on way.
> A PDRadioButton with no children throws an NPE
> ----------------------------------------------
>
> Key: PDFBOX-2161
> URL: https://issues.apache.org/jira/browse/PDFBOX-2161
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 1.8.6
> Reporter: Tim Allison
> Priority: Minor
> Attachments: PDFBox-2161.patch
>
>
> In some pdfs, a PDRadioButton can not have any children. This leads to an
> NPE when a client calls getValue(). The javadocs say that getValue() can
> throw an IOException if there is a problem getting the value, but not an NPE.
> A doc that shows this issue is:
> [562254|http://digitalcorpora.org/corp/nps/files/govdocs1/562/562254.pdf]
--
This message was sent by Atlassian JIRA
(v6.2#6252)