From d1ad257a4c898af852e5dad577bb94c52e14429a Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Thu, 26 Feb 2009 18:17:49 +0000 Subject: [PATCH] Defend against empty location. --- xmltooling/soap/impl/SOAPClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmltooling/soap/impl/SOAPClient.cpp b/xmltooling/soap/impl/SOAPClient.cpp index fb0ff52..9082d41 100644 --- a/xmltooling/soap/impl/SOAPClient.cpp +++ b/xmltooling/soap/impl/SOAPClient.cpp @@ -57,7 +57,7 @@ void SOAPClient::reset() void SOAPClient::send(const Envelope& env, const SOAPTransport::Address& addr) { // Prepare a transport object. - const char* pch = strchr(addr.m_endpoint,':'); + const char* pch = addr.m_endpoint ? strchr(addr.m_endpoint,':') : NULL; if (!pch) throw IOException("SOAP endpoint was not a URL."); string scheme(addr.m_endpoint, pch-addr.m_endpoint); -- 2.1.4