From cb2c31cfa4df8d67685c56ec8335a48df8e6114e Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Mon, 5 May 2014 20:25:17 +0800 Subject: [PATCH] Fixed a crash --- src/wrapxerces.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wrapxerces.cpp b/src/wrapxerces.cpp index 2712471..7302b2b 100644 --- a/src/wrapxerces.cpp +++ b/src/wrapxerces.cpp @@ -271,6 +271,9 @@ InputSource *WrapXerces::resolveEntity ( return new LocalFileInputSource ( ( const XMLCh * ) WrapXerces::toString ( file ).GetData() ); + if (systemId.empty() && publicId.empty()) + return NULL; + wxString fileURL = WrapLibxml::FileNameToURL ( fileName ); return new URLInputSource ( ( const XMLCh * ) WrapXerces::toString ( fileURL ).GetData()