You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "J.Pietschmann" <j3...@yahoo.de> on 2005/10/02 01:46:48 UTC

Re: DO NOT REPLY [Bug 36871] New: - Null Pointer exception in xsl mode

bugzilla@apache.org wrote:
> When your XSL file contains a condition that isn't met, so that you don't have a
> <fo:root to do anything with you get a null pointer execption.

Well, the bug report should read "no proper error message
if there is no fo:root". I vaguely remember Jeremias worked on
this, unfortunately I don't remember whether this got into
0.20.5, and I can't currently test it. Does someone else have
a 0.20.5 installation ready to run to do a quick test?

J.Pietschmann

Re: DO NOT REPLY [Bug 36871] New: - Null Pointer exception in xsl mode

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
On 02.10.2005 01:46:48 J.Pietschmann wrote:
> bugzilla@apache.org wrote:
> > When your XSL file contains a condition that isn't met, so that you don't have a
> > <fo:root to do anything with you get a null pointer execption.
> 
> Well, the bug report should read "no proper error message
> if there is no fo:root". I vaguely remember Jeremias worked on
> this, unfortunately I don't remember whether this got into
> 0.20.5, and I can't currently test it. Does someone else have
> a 0.20.5 installation ready to run to do a quick test?
> 
> J.Pietschmann

If you fill in well-formed XML you'll get a proper error message in the
maintenance branch and in the trunk. In the bug reporter's case however
the stylesheet produced non-wellformed output (the XML started with text
after the XML header). I've fixed the trunk to provide better error
messages.


Jeremias Maerki