[
https://issues.apache.org/jira/browse/PDFBOX-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16518541#comment-16518541
]
ASF subversion and git services commented on PDFBOX-4248:
---------------------------------------------------------
Commit 1833945 from [email protected] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1833945 ]
PDFBOX-4248: avoid NPE which can happen with a Batik graphics object
> NPE when rendering a PDF with annotations using a g2d from Batik
> ----------------------------------------------------------------
>
> Key: PDFBOX-4248
> URL: https://issues.apache.org/jira/browse/PDFBOX-4248
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.9, 2.0.10
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Priority: Major
> Fix For: 2.0.11, 3.0.0 PDFBox
>
>
> When using PDFBox to draw a PDF into a Batik SVG g2d, there is an NPE in
> PageDrawer.java at this line
> {code:java}
> int deviceType = graphics.getDeviceConfiguration().getDevice().getType();
> {code}
> Apache Batik has this code in SVGGraphics2D:
> {code:java}
> /**
> * Returns the device configuration associated with this
> * <code>Graphics2D</code>.
> */
> public GraphicsConfiguration getDeviceConfiguration(){
> // TO BE DONE.
> return null;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]