mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-06-25 02:19:37 +02:00
Fixes #2387.
Check for null object in debug message so it doesn't cause crash.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user