I have a situation when I select multiple objects and do a copy and paste with them.  I show the copied elements as selected, so I have to get their bounding box.  When I get the SVGMatrix from the SVGLocatable and then try to call SVGMatrix.getA() (or any of the other matrix elements), I get a NullPointerException.  This occurs inside the Batik code with getting an AffineTransform, etc.

 

My work-around is this (inside a for loop that tries to bound all selected elements):

 

try {

    matrix.getA();

} catch (NullPointerException npExeception) {

    continue;

}

 

Obviously this is not ideal.  Has this problem been resolved in nightly builds?  This is a test run against the 1.6 final release.

 

Michael Bishop

Reply via email to