mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
refs #283 Fixed crash sending status message to simulator when no simulator loaded
This commit is contained in:
@@ -282,6 +282,7 @@ namespace BlackCore
|
||||
|
||||
void CContextSimulator::ps_statusMessageReceived(const CStatusMessage &statusMessage)
|
||||
{
|
||||
if (!this->m_simulator) return;
|
||||
if (statusMessage.getSeverity() != CStatusMessage::SeverityError) return;
|
||||
this->m_simulator->displayStatusMessage(statusMessage);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user