Browse Source

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
tags/fop-1_0
Adrian Cumiskey 15 years ago
parent
commit
8d6ce0fde1
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/java/org/apache/fop/render/afp/AFPImageGraphics2DFactory.java

+ 2
- 0
src/java/org/apache/fop/render/afp/AFPImageGraphics2DFactory.java View File

@@ -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);

Loading…
Cancel
Save