mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 05:28:09 +08:00
Fix cppcheck warnings
This commit is contained in:
@@ -644,7 +644,7 @@ namespace BlackCore::Context
|
||||
if (!m_simulatorPlugin.first.isUnspecified())
|
||||
{
|
||||
ISimulator *simulator = m_simulatorPlugin.second;
|
||||
if (simulator->isConnected())
|
||||
if (simulator && simulator->isConnected())
|
||||
{
|
||||
// we are about to unload an connected simulator
|
||||
this->updateMarkAllAsNotRendered(); // without plugin nothing can be rendered
|
||||
|
||||
Reference in New Issue
Block a user