1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-06-25 02:19:37 +02: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)
qDebug("ProjectPanel::fileNew() rcs=%p rcs->getFileName()='%s'",
rcs, rcs->getFileName().toAscii().constData());
rcs, rcs == 0 ? "<null>" :
rcs->getFileName().toAscii().constData());
return (rcs!=NULL);
}