diff options
author | Adrian Cumiskey <acumiskey@apache.org> | 2008-10-16 10:10:12 +0000 |
---|---|---|
committer | Adrian Cumiskey <acumiskey@apache.org> | 2008-10-16 10:10:12 +0000 |
commit | 8d6ce0fde13d57fac629bc8925c7985dc53b5390 (patch) | |
tree | 6a9da5e7e6742f4c97b04d89d5874aa2340cccbb | |
parent | 2677a2d6ac3758153d0fae0f4a2ba83a65703fa5 (diff) | |
download | xmlgraphics-fop-8d6ce0fde13d57fac629bc8925c7985dc53b5390.tar.gz xmlgraphics-fop-8d6ce0fde13d57fac629bc8925c7985dc53b5390.zip |
Fixes potential NullPointerException in AFPGraphics2D.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@705196 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/java/org/apache/fop/render/afp/AFPImageGraphics2DFactory.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/render/afp/AFPImageGraphics2DFactory.java b/src/java/org/apache/fop/render/afp/AFPImageGraphics2DFactory.java index 0433d25b3..5128b96cf 100644 --- a/src/java/org/apache/fop/render/afp/AFPImageGraphics2DFactory.java +++ b/src/java/org/apache/fop/render/afp/AFPImageGraphics2DFactory.java @@ -52,6 +52,8 @@ public class AFPImageGraphics2DFactory extends AFPDataObjectInfoFactory { AFPGraphics2DAdapter g2dAdapter = afpImageInfo.g2dAdapter; AFPGraphics2D g2d = g2dAdapter.getGraphics2D(); + AFPInfo afpInfo = AFPSVGHandler.getAFPInfo(afpImageInfo.rendererContext); + g2d.setAFPInfo(afpInfo); g2d.setGraphicContext(new org.apache.xmlgraphics.java2d.GraphicContext()); g2d.setState(state); graphicsObjectInfo.setGraphics2D(g2d); |