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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to