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 2008/11/28 17:03:33 UTC
DO NOT REPLY [Bug 33447] Null Pointer Exception in TranscoderAPI
https://issues.apache.org/bugzilla/show_bug.cgi?id=33447
ppoulard <ph...@sophia.inria.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |philippe.poulard@sophia.inri
| |a.fr
Status|NEEDINFO |NEW
--- Comment #3 from ppoulard <ph...@sophia.inria.fr> 2008-11-28 08:03:32 PST ---
Hi,
org.apache.batik.dom.util.SAXDocumentFactory cause a
java.lang.NullPointerException when it is created with a SAX source that
doesn't refer to an InputSource
the method startElement() contains the following lines:
isStandalone = parser.getFeature
("http://xml.org/sax/features/is-standalone");
but the variable parser is null if the method createDocument(InputSource is)
has not been called before (and if the SAX source is made of a Reader for
example, it won't be callde)
suggestion: correct the code in the method startElement() like this:
isStandalone = parser == null ? true : parser.getFeature
("http://xml.org/sax/features/is-standalone");
Regards,
P. Poulard
--
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