sboag       01/03/14 01:11:39

  Modified:    java/src/org/apache/xpath VariableStack.java
  Log:
  Added protection for null pointer exception that I discovered when
  running some Cocoon tests.  Since I've never seen this before,
  I assume this is related to the changes that Gary made, but am
  unsure as it's 4:00 in the morning and I'm too tired to look into it deeply.
  
  Revision  Changes    Path
  1.28      +2 -1      xml-xalan/java/src/org/apache/xpath/VariableStack.java
  
  Index: VariableStack.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/VariableStack.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- VariableStack.java        2001/03/09 18:07:20     1.27
  +++ VariableStack.java        2001/03/14 09:11:38     1.28
  @@ -297,7 +297,8 @@
       for (int i = (frame.size() - 1); i >= 0; i--)
       {
         Arg arg = (Arg)frame.elementAt(i);
  -      arg.setIsVisible(false);
  +      if(null != arg)
  +        arg.setIsVisible(false);
       }
     }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to