Summary: | NullPointerException when painting GraphicsNode onto Graphics2D impl with no associated DeviceConfiguration (i.e. SVGGraphics2D) | ||
---|---|---|---|
Product: | Batik - Now in Jira | Reporter: | Thomas Behr <thomas.behr> |
Component: | GVT | Assignee: | Batik Developer's Mailing list <batik-dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 1.7 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Bug Depends on: | |||
Bug Blocks: | 42387 | ||
Attachments: | bug fix: added relevant null checking |
Description
Thomas Behr
2007-05-10 10:17:44 UTC
Created attachment 20163 [details]
bug fix: added relevant null checking
Although this fixes the NPE, it would probably be a good idea to change
SVGGraphics2D's implementation of getDeviceConfiguration
Hi Thomas. Yes there should be checks in there, I think. I'm not sure what behaviour makes sense for a GraphicsConfiguration on SVGGraphics2D, since it doesn't work on a raster image. So for now I'll leave getDeviceConfiguration() returning null. I've added the null checks into GraphicsUtil. BTW I met your colleague Michael Kaufmann last week when he was visiting us at Monash Uni. |