Fixed a crash
This commit is contained in:
parent
e4baedaa4b
commit
cb2c31cfa4
|
@ -271,6 +271,9 @@ InputSource *WrapXerces::resolveEntity (
|
||||||
return new LocalFileInputSource (
|
return new LocalFileInputSource (
|
||||||
( const XMLCh * ) WrapXerces::toString ( file ).GetData() );
|
( const XMLCh * ) WrapXerces::toString ( file ).GetData() );
|
||||||
|
|
||||||
|
if (systemId.empty() && publicId.empty())
|
||||||
|
return NULL;
|
||||||
|
|
||||||
wxString fileURL = WrapLibxml::FileNameToURL ( fileName );
|
wxString fileURL = WrapLibxml::FileNameToURL ( fileName );
|
||||||
return new URLInputSource
|
return new URLInputSource
|
||||||
( ( const XMLCh * ) WrapXerces::toString ( fileURL ).GetData()
|
( ( const XMLCh * ) WrapXerces::toString ( fileURL ).GetData()
|
||||||
|
|
Loading…
Reference in New Issue