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 2021/08/11 17:16:00 UTC
[jira] [Commented] (PDFBOX-5257) NumberFormatException in merge if
fieldname is "dummyFieldName1#1"
[ https://issues.apache.org/jira/browse/PDFBOX-5257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17397502#comment-17397502 ]
ASF subversion and git services commented on PDFBOX-5257:
---------------------------------------------------------
Commit 1892240 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1892240 ]
PDFBOX-5257: avoid NumberFormatException
> NumberFormatException in merge if fieldname is "dummyFieldName1#1"
> ------------------------------------------------------------------
>
> Key: PDFBOX-5257
> URL: https://issues.apache.org/jira/browse/PDFBOX-5257
> Project: PDFBox
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.0.24
> Reporter: Tilman Hausherr
> Priority: Major
> Fix For: 2.0.25, 3.0.0 PDFBox
>
>
> {code}
> nextFieldNum = Math.max(nextFieldNum, Integer.parseInt(fieldName.substring(prefixLength)) + 1);
> {code}
> needs to be change to take into account that text after "dummyFieldName" might not be a number.
--
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