Do not dereference a nullptr.
This commit is contained in:
parent
845dd761d9
commit
506e51598d
@ -109,7 +109,8 @@ ModuleManager::loadModules( Phase phase )
|
|||||||
qApp->exit( 1 );
|
qApp->exit( 1 );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ( m_availableModules.value( moduleName )->isLoaded() )
|
Module* thisModule = m_availableModules.value( moduleName );
|
||||||
|
if ( thisModule && thisModule->isLoaded() )
|
||||||
{
|
{
|
||||||
cDebug() << "Module" << moduleName << "already loaded.";
|
cDebug() << "Module" << moduleName << "already loaded.";
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user