DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=40898>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40898 Summary: NullPointerException on SVGStylableElement.getStyle() method Product: Batik Version: 2.0 Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: CSS AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] I am getting NPE errors when calling getStyle() for SVGStylableElements. If I wait for the GVTTreeBuilder to complete, it doesn't raise the error at the first load of a file in JSVGCanvas, but subsequent loads raises the error. I found that NPE is raised because the variable 'cssEngine' in AbstractStylableDocument is null at the moment of the call, but I may wait for a long time and it is still null (except for the first time I load the file in JSVGCanvas). I don't have experience in Batik development. What do I have to wait for to be garanteed that all style stuff is built? Fragment that raises the NPE: result = ((SVGStylableElement)elem).getStyle(); -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
