You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2019/11/13 17:59:00 UTC
[jira] [Commented] (PDFBOX-4687) "Iterator.next()" methods should
throw "NoSuchElementException"
[ https://issues.apache.org/jira/browse/PDFBOX-4687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16973571#comment-16973571 ]
ASF subversion and git services commented on PDFBOX-4687:
---------------------------------------------------------
Commit 1869764 from Tilman Hausherr in branch 'pdfbox/branches/issue4569'
[ https://svn.apache.org/r1869764 ]
PDFBOX-4687: Iterator.next() methods should throw NoSuchElementException, as suggested by SonarCloud and Haris Adzemovic; closes #75
> "Iterator.next()" methods should throw "NoSuchElementException"
> ---------------------------------------------------------------
>
> Key: PDFBOX-4687
> URL: https://issues.apache.org/jira/browse/PDFBOX-4687
> Project: PDFBox
> Issue Type: Bug
> Reporter: Haris Adzemovic
> Priority: Minor
>
> 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]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org