Backport two nullpointer reference fixes from QtWebApp 1.7.4

This commit is contained in:
Felix Kauselmann
2018-05-26 10:30:14 +02:00
parent 1c4eb4d1c6
commit 9851884021
2 changed files with 18 additions and 12 deletions

View File

@ -92,8 +92,8 @@ void FileLogger::write(const LogMessage* logMessage)
// Check for success
if (file->error())
{
close();
qWarning("Cannot write to log file %s: %s",qPrintable(fileName),qPrintable(file->errorString()));
close();
}
}