+ fix possible crash when throw file exception

This commit is contained in:
wmayer 2016-06-11 16:25:06 +02:00
parent 051a9fce73
commit f8c0d2f05d

View File

@ -126,8 +126,10 @@ const char* XMLParseException::what() const throw()
FileException::FileException(const char * sMessage, const char * sFileName)
: Exception( sMessage ),file(sFileName)
{
_sErrMsg += ": ";
_sErrMsg += sFileName;
if (sFileName) {
_sErrMsg += ": ";
_sErrMsg += sFileName;
}
}
FileException::FileException(const char * sMessage, const FileInfo& File)