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

"Iterator.next()" methods should throw "NoSuchElementException"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.17
    • 2.0.18, 3.0.0 PDFBox
    • PDModel
    • None

    Description

      Sonarcloud found that implementations of next() in PDFPageTree and PDOutlineItemIterator don't check that there exists a next element before accessing it:

      https://sonarcloud.io/organizations/apache/issues?languages=java&open=AW5JmA2vaYfGX6JOkPBy&resolved=false&rules=squid%3AS2272&types=BUG

      Attachments

        Activity

          People

            tilman Tilman Hausherr
            HarisAdzemovic Haris Adzemovic
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: