mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
Avoid accessing nullptr.
This commit is contained in:
parent
88719d961f
commit
df9daf8fec
1 changed files with 6 additions and 0 deletions
|
@ -196,6 +196,12 @@ void
|
|||
ModuleManager::doLoad( const QString& moduleName )
|
||||
{
|
||||
Module* thisModule = m_availableModules.value( moduleName );
|
||||
if ( !thisModule )
|
||||
{
|
||||
cDebug() << "Module" << moduleName << "loading IMPOSSIBLE, module does not exist";
|
||||
return;
|
||||
}
|
||||
|
||||
thisModule->loadSelf();
|
||||
if ( !thisModule->isLoaded() )
|
||||
cDebug() << "Module" << moduleName << "loading FAILED";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue