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

A PDRadioButton with no children throws an NPE

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.6
    • Fix Version/s: 1.8.7, 2.0.0
    • Component/s: PDModel
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              tallison@apache.org Tim Allison
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: