You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mo...@apache.org on 2001/10/04 12:42:52 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/compiler Output.java
morten 01/10/04 03:42:52
Modified: java/src/org/apache/xalan/xsltc/compiler Output.java
Log:
Fix for a rarely occuring NPE in handling of <xsl:output> elements with
no 'method' attribute/
PR: n/a
Obtained from: n/a
Submitted by: morten@xml.apache.org
Reviewed by: morten@xml.apache.org
Revision Changes Path
1.9 +2 -2 xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Output.java
Index: Output.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Output.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- Output.java 2001/09/25 20:38:41 1.8
+++ Output.java 2001/10/04 10:42:52 1.9
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: Output.java,v 1.8 2001/09/25 20:38:41 morten Exp $
+ * @(#)$Id: Output.java,v 1.9 2001/10/04 10:42:52 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -177,7 +177,7 @@
if ((attrib != null) && (!attrib.equals(EMPTYSTRING))) {
if (attrib.equals("yes")) _indent = true;
}
- else if (_method.equals("html")) {
+ else if ((_method != null) && (_method.equals("html"))) {
_indent = true;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org