Return-Path: Delivered-To: apmail-xmlgraphics-fop-commits-archive@www.apache.org Received: (qmail 5325 invoked from network); 16 Oct 2008 10:10:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Oct 2008 10:10:35 -0000 Received: (qmail 15466 invoked by uid 500); 16 Oct 2008 10:10:36 -0000 Delivered-To: apmail-xmlgraphics-fop-commits-archive@xmlgraphics.apache.org Received: (qmail 15444 invoked by uid 500); 16 Oct 2008 10:10:36 -0000 Mailing-List: contact fop-commits-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: fop-dev@xmlgraphics.apache.org Delivered-To: mailing list fop-commits@xmlgraphics.apache.org Received: (qmail 15435 invoked by uid 99); 16 Oct 2008 10:10:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2008 03:10:36 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2008 10:09:37 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 874C02388975; Thu, 16 Oct 2008 03:10:14 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r705196 - /xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/AFPImageGraphics2DFactory.java Date: Thu, 16 Oct 2008 10:10:13 -0000 To: fop-commits@xmlgraphics.apache.org From: acumiskey@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20081016101014.874C02388975@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: acumiskey Date: Thu Oct 16 03:10:12 2008 New Revision: 705196 URL: http://svn.apache.org/viewvc?rev=705196&view=rev Log: Fixes potential NullPointerException in AFPGraphics2D. Modified: xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/AFPImageGraphics2DFactory.java Modified: xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/AFPImageGraphics2DFactory.java URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/AFPImageGraphics2DFactory.java?rev=705196&r1=705195&r2=705196&view=diff ============================================================================== --- xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/AFPImageGraphics2DFactory.java (original) +++ xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/AFPImageGraphics2DFactory.java Thu Oct 16 03:10:12 2008 @@ -52,6 +52,8 @@ 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); --------------------------------------------------------------------- To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org