axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From susan...@apache.org
Subject cvs commit: ws-axis/c/src/soap SoapParserExpat.cpp
Date Mon, 09 Feb 2004 16:03:40 GMT
susantha    2004/02/09 08:03:39

  Modified:    c/src/soap SoapParserExpat.cpp
  Log:
  Bug fix in the SoapParserExpat class
  
  Revision  Changes    Path
  1.6       +8 -4      ws-axis/c/src/soap/SoapParserExpat.cpp
  
  Index: SoapParserExpat.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/SoapParserExpat.cpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- SoapParserExpat.cpp	20 Jan 2004 14:05:17 -0000	1.5
  +++ SoapParserExpat.cpp	9 Feb 2004 16:03:39 -0000	1.6
  @@ -141,14 +141,18 @@
   
   void SoapParserExpat::startPrefixMapping(const XMLCh *prefix, const XMLCh *uri)
   {
  -	StartPrefix* pEvent = new StartPrefix();
  -	pEvent->m_NameOrValue = prefix;
  -	pEvent->m_Namespace = uri;
  -	m_Events.push(pEvent);
  +	if (prefix && uri)
  +	{
  +		StartPrefix* pEvent = new StartPrefix();
  +		pEvent->m_NameOrValue = prefix;
  +		pEvent->m_Namespace = uri;
  +		m_Events.push(pEvent);
  +	}
   }
   
   void SoapParserExpat::endPrefixMapping(const XMLCh *prefix)
   {
  +	if (!prefix) return;
   	EndPrefix* pEvent = new EndPrefix();
   	pEvent->m_NameOrValue = prefix;
   	m_Events.push(pEvent);
  
  
  

Mime
View raw message