mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Detect emulated driver before casting to avoid crashs
This commit is contained in:
@@ -1392,7 +1392,7 @@ namespace BlackCore
|
||||
return args.join(' ');
|
||||
}
|
||||
|
||||
ISimulator *CApplication::getISimulator() const
|
||||
QPointer<ISimulator> CApplication::getISimulator() const
|
||||
{
|
||||
if (!this->getCoreFacade()) { return nullptr; }
|
||||
if (!this->getCoreFacade()->getCContextSimulator()) { return nullptr; }
|
||||
|
||||
Reference in New Issue
Block a user