Fixed a crash
This commit is contained in:
parent
8d041e9433
commit
af3e0d751a
|
@ -69,7 +69,13 @@ InputSource *XercesCatalogResolver::resolveEntity (
|
||||||
#endif
|
#endif
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if ( publicID == NULL || *publicID == '\0' )
|
||||||
|
return NULL;
|
||||||
|
|
||||||
char *narrowPublicId = XMLString::transcode ( publicID );
|
char *narrowPublicId = XMLString::transcode ( publicID );
|
||||||
|
if ( narrowPublicId == NULL )
|
||||||
|
return NULL;
|
||||||
|
|
||||||
std::string resolved;
|
std::string resolved;
|
||||||
resolved = lookupPublicId ( narrowPublicId );
|
resolved = lookupPublicId ( narrowPublicId );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue