dbertoni 01/06/06 14:53:32
Modified: c/src/XSLT XSLTInputSource.cpp
Log:
Do sanity check for null systemId.
Revision Changes Path
1.11 +7 -2 xml-xalan/c/src/XSLT/XSLTInputSource.cpp
Index: XSLTInputSource.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/XSLTInputSource.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- XSLTInputSource.cpp 2000/08/08 16:29:07 1.10
+++ XSLTInputSource.cpp 2001/06/06 21:53:30 1.11
@@ -161,9 +161,14 @@
}
else if (m_node == 0)
{
- URISupport::URLAutoPtrType theURL =
URISupport::getURLFromString(getSystemId());
+ const XalanDOMChar* const theSystemId = getSystemId();
- theResult = theURL->makeNewStream();
+ if (theSystemId != 0)
+ {
+ const URISupport::URLAutoPtrType
theURL(URISupport::getURLFromString(theSystemId));
+
+ theResult = theURL->makeNewStream();
+ }
}
return theResult;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]