I have found some curious behaviour when doing a scaling AffineTransform
on a GeneralPath.

I am using GeneralPath to draw an open curve which could be made up of
any number of points.  The path is added to using append(Shape).

When the path is made up of cubic splines a NullPointerException is
thrown, but only when there is a certain number of shapes are in the
GeneralPath.

When there are 5, 10, 20, 40 or 80 cubic spline shapes in the path, the
exception is thrown.  All other cases are fine.

When the cubic splines are replaced with lineTos, it works fine.  I
haven't tested it any more exhaustively than that.

Is this enough information, or would you like a code sample as well?
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 2D Home Page: http://java.sun.com/products/java-media/2D/

Reply via email to