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 "Kevin Connor ARPE (JIRA)" <ji...@apache.org> on 2013/07/30 09:29:52 UTC

[jira] [Updated] (BATIK-946) Null pointer exception in XMLAbstractTranscoder

     [ https://issues.apache.org/jira/browse/BATIK-946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Connor ARPE updated BATIK-946:
------------------------------------

    Attachment: XMLAbstractTranscoder.java.patch

Patch against trunk to fix issue.
                
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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