[ https://issues.apache.org/jira/browse/BATIK-946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vincent Hennebert resolved BATIK-946. ------------------------------------- Resolution: Fixed Fixed in rev. [1614177|http://svn.apache.org/r1614177]. Thanks for your patch. I've applied a slightly simpler version. The key is set to false by default in the constructor, so IIC the only way to hit this bug is by calling o.a.b.transcoder.TranscoderSupport.setTranscodingHints, passing it an object that doesn't contain the key. > Null pointer exception in XMLAbstractTranscoder > ----------------------------------------------- > > Key: BATIK-946 > URL: https://issues.apache.org/jira/browse/BATIK-946 > Project: Batik > Issue Type: Bug > Components: SVG Rasterizer > Affects Versions: 1.7 > Environment: Operating System: Linux > Platform: PC > Reporter: Christopher Heiny > Assignee: Batik Developer's Mailing list > Attachments: XMLAbstractTranscoder.java.patch > > > In version 1.7, at line 109 of XMLAbstractTranscoder, the code assumes that a > hint has been provided for KEY_XML_PARSER_VALIDATING, casts it to Boolean, > and invokes the booleanValue() method. If the user has not provided this > hint (quite likely since many of the examples and tutorials on the web omit > this hint entirely), a null pointer exception results, causing a mysterious > and unexplained crash. > This bug also exists in the trunk in SVN. > Recommendation: Either have sensible default for the case when this hint is > null, or throw an appropriate exception with a descriptive error message. -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: batik-dev-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: batik-dev-h...@xmlgraphics.apache.org