1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-19 17:57:22 +01:00
Check for null object in debug message so it doesn't cause crash.
This commit is contained in:
Theron Tock 2011-05-05 17:02:15 -07:00
parent 71f5faab3d
commit 4880424bf3

View File

@ -211,7 +211,8 @@ bool ProjectPanel::fileNew()
if (fwbdebug) if (fwbdebug)
qDebug("ProjectPanel::fileNew() rcs=%p rcs->getFileName()='%s'", qDebug("ProjectPanel::fileNew() rcs=%p rcs->getFileName()='%s'",
rcs, rcs->getFileName().toAscii().constData()); rcs, rcs == 0 ? "<null>" :
rcs->getFileName().toAscii().constData());
return (rcs!=NULL); return (rcs!=NULL);
} }