Avoid dereferencing nullptr.
This commit is contained in:
parent
df9daf8fec
commit
11f5b729a8
@ -101,7 +101,8 @@ ModuleManager::loadModules( Phase phase )
|
|||||||
{
|
{
|
||||||
foreach ( const QString& moduleName, Settings::instance()->modules( phase ) )
|
foreach ( const QString& moduleName, Settings::instance()->modules( phase ) )
|
||||||
{
|
{
|
||||||
if ( !m_availableModules.contains( moduleName ) )
|
if ( !m_availableModules.contains( moduleName ) ||
|
||||||
|
!m_availableModules.value( moduleName ) )
|
||||||
{
|
{
|
||||||
cDebug() << "Module" << moduleName << "not found in module search paths."
|
cDebug() << "Module" << moduleName << "not found in module search paths."
|
||||||
<< "\nCalamares will now quit.";
|
<< "\nCalamares will now quit.";
|
||||||
|
Loading…
Reference in New Issue
Block a user