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=40 898>. 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 a> 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: batik-devxmlgraphics.apache.org ReportedBy: flaviostutzgmail.com 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=ema il ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. ------------------------------------------------------------ --------- To unsubscribe, e-mail: batik-dev-unsubscribexmlgraphics.apache.org For additional commands, e-mail: batik-dev-helpxmlgraphics.apache.org
about | contact Other archives ( Real Estate discussion Medical topics )
Mailing lists
Newsgroups
RFC archive