Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-2161

A PDRadioButton with no children throws an NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.6
    • 1.8.7, 2.0.0
    • PDModel
    • None

    Description

      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

      Attachments

        1. PDFBox-2161.patch
          3 kB
          Tim Allison
        2. PDFBox-2161.patch
          3 kB
          Tim Allison

        Activity

          People

            Unassigned Unassigned
            tallison Tim Allison
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: