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
+2 -1
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);
}