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/10/11 00:47:33 UTC
[jira] [Closed] (PDFBOX-53) Problem getting value from
PDRadioCollection
[ https://issues.apache.org/jira/browse/PDFBOX-53?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Hewson closed PDFBOX-53.
-----------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
This may have been fixed earlier, but the field tree has definitely been fixed in 2.0.
> Problem getting value from PDRadioCollection
> --------------------------------------------
>
> Key: PDFBOX-53
> URL: https://issues.apache.org/jira/browse/PDFBOX-53
> Project: PDFBox
> Issue Type: Bug
> Components: AcroForm
> Fix For: 2.0.0
>
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1181857
> Originally submitted by ng_aldridge on 2005-04-12 15:30.
> I am getting a NullPointerException from
> PDRadioCollection.getValue (). It seems that my radio
> collection dictionaries don't have kids so the
> kids.size () call fails:
> Line 131:
> for (int i = 0; i < kids.size(); i++)
> {
> PDCheckbox btn = (PDCheckbox)kids.get(i);
> if( btn.isChecked() )
> {
> retval = btn.getOnValue();
> }
> }
> if( retval == null )
> {
> retval = getDictionary().getNameAsString(
> "V" );
> }
> I added a check for null value of kids and things
> behaved properly. If you need a sample PDF that shows
> this behaviour, I'll upload one.
> Cheers,
> Nathan
> [comment on SourceForge]
> Originally sent by benlitchfield.
> Logged In: YES
> user_id=601708
> Also see yishi pdf.
> Ben
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)