[ 
https://issues.apache.org/jira/browse/PDFBOX-3122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15014164#comment-15014164
 ] 

ASF subversion and git services commented on PDFBOX-3122:
---------------------------------------------------------

Commit 1715241 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1715241 ]

PDFBOX-3122: avoid IllegalArgumentException if dash lengths all zero

> IllegalArgumentException: dash lengths all zero
> -----------------------------------------------
>
>                 Key: PDFBOX-3122
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3122
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Rendering
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>             Fix For: 2.0.0
>
>
> {code}
> Caused by: java.lang.IllegalArgumentException: dash lengths all zero
>     org.apache.pdfbox.rendering.PageDrawer.getStroke(PageDrawer.java:563)
>     org.apache.pdfbox.rendering.PageDrawer.strokePath(PageDrawer.java:571)
>     
> org.apache.pdfbox.contentstream.operator.graphics.StrokePath.process(StrokePath.java:36)
> {code}
> The content stream has this:
> {code}
>   [ 0.0 0.0 ] 0 d
> {code}
> I'll fix this by checking the dash array and pass an empty array if an 
> element is 0.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to