cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pro...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/xslt XSLTProcessorImpl.java
Date Thu, 15 Aug 2002 15:53:18 GMT
proyal      2002/08/15 08:53:18

  Modified:    src/java/org/apache/cocoon/components/xslt Tag:
                        cocoon_2_0_3_branch XSLTProcessorImpl.java
  Log:
  Check to make sure the result is non-null, which is valid under the trax
  spec (see bugzilla 11704)
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.18.2.5  +9 -2      xml-cocoon2/src/java/org/apache/cocoon/components/xslt/XSLTProcessorImpl.java
  
  Index: XSLTProcessorImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/xslt/XSLTProcessorImpl.java,v
  retrieving revision 1.18.2.4
  retrieving revision 1.18.2.5
  diff -u -r1.18.2.4 -r1.18.2.5
  --- XSLTProcessorImpl.java	1 Jul 2002 00:33:37 -0000	1.18.2.4
  +++ XSLTProcessorImpl.java	15 Aug 2002 15:53:18 -0000	1.18.2.5
  @@ -271,6 +271,13 @@
                   // Get the Templates object (generated during the parsing of
                   // the stylesheet) from the TemplatesHandler.
                   templates = templatesHandler.getTemplates();
  +
  +                if( null == templates )
  +                {
  +                    throw new ProcessingException( "Unable to create templates for stylesheet:
"
  +                                                   + stylesheet.getSystemId() );
  +                }
  +
                   putTemplates (templates, stylesheet, id);
                   includes = null;
               } else {
  @@ -506,7 +513,7 @@
                   getLogger().debug("Failed to resolve " + href
                       + "(base = " + base + "), return null", mue);
               }
  -            
  +
               return null;
           } catch (IOException ioe) {
               if (getLogger().isDebugEnabled()) {
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message