Detect emulated driver before casting to avoid crashs

This commit is contained in:
Klaus Basan
2018-11-04 22:03:35 +01:00
parent c056d74820
commit dfd33e40c1
7 changed files with 16 additions and 6 deletions

View File

@@ -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; }