Do not dereference a nullptr.

main
Teo Mrnjavac 10 years ago
parent 845dd761d9
commit 506e51598d

@ -109,7 +109,8 @@ ModuleManager::loadModules( Phase phase )
qApp->exit( 1 );
return;
}
if ( m_availableModules.value( moduleName )->isLoaded() )
Module* thisModule = m_availableModules.value( moduleName );
if ( thisModule && thisModule->isLoaded() )
{
cDebug() << "Module" << moduleName << "already loaded.";
continue;

Loading…
Cancel
Save