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