You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2010/04/29 17:27:10 UTC

DO NOT REPLY [Bug 49225] New: Null pointer exception in XMLAbstractTranscoder

https://issues.apache.org/bugzilla/show_bug.cgi?id=49225

           Summary: Null pointer exception in XMLAbstractTranscoder
           Product: Batik
           Version: 1.7
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SVG Rasterizer
        AssignedTo: batik-dev@xmlgraphics.apache.org
        ReportedBy: christopherheiny@gmail.com


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.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org