Return-Path: Delivered-To: apmail-jakarta-avalon-cvs-archive@apache.org Received: (qmail 57627 invoked from network); 15 Aug 2002 15:54:48 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 15 Aug 2002 15:54:48 -0000 Received: (qmail 26568 invoked by uid 97); 15 Aug 2002 15:55:00 -0000 Delivered-To: qmlist-jakarta-archive-avalon-cvs@jakarta.apache.org Received: (qmail 26471 invoked by uid 97); 15 Aug 2002 15:54:59 -0000 Mailing-List: contact avalon-cvs-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon CVS List" Reply-To: "Avalon Developers List" Delivered-To: mailing list avalon-cvs@jakarta.apache.org Received: (qmail 26321 invoked by uid 97); 15 Aug 2002 15:54:57 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Date: 15 Aug 2002 15:54:20 -0000 Message-ID: <20020815155420.32589.qmail@icarus.apache.org> From: proyal@apache.org To: jakarta-avalon-excalibur-cvs@apache.org Subject: cvs commit: jakarta-avalon-excalibur/xmlutil/src/java/org/apache/avalon/excalibur/xml/xslt XSLTProcessorImpl.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: For additional commands, e-mail: