You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2014/06/23 22:18:24 UTC
[jira] [Comment Edited] (PDFBOX-2161) A PDRadioButton with no
children throws an NPE
[ https://issues.apache.org/jira/browse/PDFBOX-2161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14041241#comment-14041241 ]
John Hewson edited comment on PDFBOX-2161 at 6/23/14 8:16 PM:
--------------------------------------------------------------
I fixed this in r1604923 (1.8) and r160492 (trunk) by just having getKids() return an empty list when there are no kids. I couldn't include the unit test because the PDF needs to be under a suitable open license to be included in SVN.
was (Author: jahewson):
I fixed this in r1604923 (1.8) and r160492 (trunk) by just having getKids() return an empty list when there are no kids. I couldn't include the unit test because the PDF needs to be under suitable open license to be included in SVN.
> 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, 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)