avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pro...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/xmlutil/src/java/org/apache/avalon/excalibur/xml/xslt XSLTProcessorImpl.java
Date Thu, 15 Aug 2002 15:54:20 GMT
proyal      2002/08/15 08:54:19

  Modified:    xmlutil/src/java/org/apache/avalon/excalibur/xml/xslt
                        XSLTProcessorImpl.java
  Log:
  Check to make sure templates returned are non-null. Null is a valid
  response per TRAX spec (see bugzilla 11704)
  
  Revision  Changes    Path
  1.16      +9 -1      jakarta-avalon-excalibur/xmlutil/src/java/org/apache/avalon/excalibur/xml/xslt/XSLTProcessorImpl.java
  
  Index: XSLTProcessorImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/xmlutil/src/java/org/apache/avalon/excalibur/xml/xslt/XSLTProcessorImpl.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- XSLTProcessorImpl.java	4 Aug 2002 04:29:23 -0000	1.15
  +++ XSLTProcessorImpl.java	15 Aug 2002 15:54:19 -0000	1.16
  @@ -222,6 +222,14 @@
                       // Get the Templates object (generated during the parsing of
                       // the stylesheet) from the TemplatesHandler.
                       final Templates template = templatesHandler.getTemplates();
  +
  +                    if( null == template )
  +                    {
  +                        throw new XSLTProcessorException(
  +                            "Unable to create templates for stylesheet: "
  +                            + stylesheet.getSystemId() );
  +                    }
  +
                       putTemplates( template, stylesheet, id );
   
                       // Create transformer handler
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message