You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2010/12/02 23:34:10 UTC

[jira] Resolved: (PDFBOX-49) Setting a value on a PDRadioCollection fails

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

Jukka Zitting resolved PDFBOX-49.
---------------------------------

    Resolution: Duplicate

The above discussion indicates that this has already been fixed.

> Setting a value on a PDRadioCollection fails
> --------------------------------------------
>
>                 Key: PDFBOX-49
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-49
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1178663
> Originally submitted by mystikspiral on 2005-04-07 09:15.
> If a PDRadioCollection is instantiated for a group of radio 
> buttons that have no default value selected, the setValue 
> call fails when the PDCheckbox.getOnValue() method is 
> invoked.  If the same group of Radio Buttons is modified 
> so that one of them is the default selection, the code 
> executes without error and the value is set successfully.
> Simplified Example (See attached file):
> Field: Applicant.Gender 
> Export Value 1: Male 
> Export Value 2: Female
> PDRadioCollection Gender
> theForm.getField(Applicant.Gender);
> Gender.setValue("Male"); <--Exception Thrown
> Thanks.
> [comment on SourceForge]
> Originally sent by benlitchfield.
> Logged In: YES 
> user_id=601708
> The fix that you describe uses a try catch NPE block, I would 
> like to try to come up with a better solution.  I don't see that 
> file on the FTP site, can you try to upload it again.
> Ben
> [comment on SourceForge]
> Originally sent by mystikspiral.
> Logged In: YES 
> user_id=1245859
> This issue is resolved as well, with no additional code 
> change.  After I implemented a resolution to Bug 1178668, 
> this issue went away.  So it would seem that the lack of a 
> default value was not the true cause of the error, more it was 
> the processing of the kids as that default value was searched 
> for.
> [comment on SourceForge]
> Originally sent by mystikspiral.
> Logged In: YES 
> user_id=1245859
> Uploading file to ftp.pdfbox.org 
> called "RadioButtons_NoDefault.pdf" because the upload as 
> an attachment to this report failed beacause the size 
> restrictions were exceeded.  
> Sorry for any confusion.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.