axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/message SAXAdapter.java
Date Fri, 01 Jun 2001 02:13:26 GMT
gdaniels    01/05/31 19:13:26

  Modified:    java/src/org/apache/axis/message SAXAdapter.java
  Log:
  Set the "parsing" flag on the MessageContext to avoid an exception
  when RPCElement asks for the serviceHandler.  If we didn't, another
  (recursive) parse would kick off and generate a NullPointerException.
  
  Revision  Changes    Path
  1.5       +2 -0      xml-axis/java/src/org/apache/axis/message/SAXAdapter.java
  
  Index: SAXAdapter.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/SAXAdapter.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SAXAdapter.java	2001/05/23 16:15:06	1.4
  +++ SAXAdapter.java	2001/06/01 02:13:25	1.5
  @@ -32,7 +32,9 @@
       public void parse()
       {
         try {
  +        context.getMessageContext().setParsing(true);
           _parser.parse(inputSource, this);
  +        context.getMessageContext().setParsing(false);
         } catch (Exception e) {
           e.printStackTrace();
         }
  
  
  

Mime
View raw message