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

Reply via email to