Bug 49225 - Null pointer exception in XMLAbstractTranscoder
Summary: Null pointer exception in XMLAbstractTranscoder
Status: NEW
Alias: None
Product: Batik - Now in Jira
Classification: Unclassified
Component: SVG Rasterizer (show other bugs)
Version: 1.7
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Batik Developer's Mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-29 11:27 UTC by Christopher Heiny
Modified: 2010-04-29 11:27 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.