Return-Path: Delivered-To: apmail-xmlgraphics-batik-users-archive@www.apache.org Received: (qmail 35077 invoked from network); 23 Oct 2008 06:22:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Oct 2008 06:22:19 -0000 Received: (qmail 78406 invoked by uid 500); 23 Oct 2008 06:22:21 -0000 Delivered-To: apmail-xmlgraphics-batik-users-archive@xmlgraphics.apache.org Received: (qmail 78394 invoked by uid 500); 23 Oct 2008 06:22:21 -0000 Mailing-List: contact batik-users-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: batik-users@xmlgraphics.apache.org Delivered-To: mailing list batik-users@xmlgraphics.apache.org Received: (qmail 78383 invoked by uid 99); 23 Oct 2008 06:22:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Oct 2008 23:22:21 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [124.148.16.215] (HELO arc.mcc.id.au) (124.148.16.215) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Oct 2008 06:21:10 +0000 Received: from cam by arc.mcc.id.au with local (Exim 4.69) (envelope-from ) id 1KstWo-0007Vv-Oi for batik-users@xmlgraphics.apache.org; Thu, 23 Oct 2008 16:18:38 +1000 Date: Thu, 23 Oct 2008 17:18:38 +1100 From: Cameron McCormack To: batik-users@xmlgraphics.apache.org Subject: Re: Odd LinearGradient problem with Batik Message-ID: <20081023061838.GM20693@arc.mcc.id.au> Mail-Followup-To: batik-users@xmlgraphics.apache.org References: <20081020220234.39759132@sovvan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20081020220234.39759132@sovvan> Organization: Clayton School of IT, Monash University X-Numbers: 4 8 15 16 23 42 X-Attribution: Cam User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Virus-Checked: Checked by ClamAV on apache.org G. Wade Johnson: > I'm doing some testing with some of my older SVG applications and ran > into an odd behavior in Batik 1.6 and 1.7. > > I am applying a linear gradient as a fill to a path. The path starts > out as a point at (0, 0). In my application, I extend the path through > scripting to make a sort of strip chart. > > The problem is that Squiggle (in either 1.6 or 1.7) immediately fails > with an NPE if I use a linear gradient on this empty path. If I use a > solid color, there is no problem. > > Since I originally developed this application with Squiggle as my > viewer, I quite certain it worked once upon a time. But, now I get the > following error. > ----------------------------- > java.lang.NullPointerException > at > org.apache.batik.bridge.SVGLinearGradientElementBridge.buildGradient(SVGLinearGradientElementBridge.java:127) There was a bug on this line that has been fixed since the 1.7 release. If you try it with a recent SVN version you shouldn’t get the NPE. Definitely this shouldn’t throw an exception, here. -- Cameron McCormack ≝ http://mcc.id.au/ --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org