[ 
https://issues.apache.org/jira/browse/PDFBOX-53?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Hewson updated PDFBOX-53:
------------------------------

    Component/s:     (was: PDModel)
                 AcroForm

> Problem getting value from PDRadioCollection
> --------------------------------------------
>
>                 Key: PDFBOX-53
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-53
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm
>
> [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.1.5#6160)

Reply via email to