On Thu, 23 Oct 2008 17:18:38 +1100 Cameron McCormack <[EMAIL PROTECTED]> wrote:
> 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. Great. As long as it's fixed, I'm happy. Thanks, G. Wade -- I've been living on the edge too long, where the winds of limbo roar. -- "Veteran of Psychic Wars", Blue Oyster Cult --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]