xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cameron McCormack <...@mcc.id.au>
Subject Re: Odd LinearGradient problem with Batik
Date Thu, 23 Oct 2008 06:18:38 GMT
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


Mime
View raw message