Bug 49225

Summary: Null pointer exception in XMLAbstractTranscoder
Product: Batik - Now in Jira Reporter: Christopher Heiny <christopherheiny>
Component: SVG RasterizerAssignee: Batik Developer's Mailing list <batik-dev>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 1.7   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Christopher Heiny 2010-04-29 11:27:07 UTC
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.