diff --git a/src/modules/netinstall/PackageModel.cpp b/src/modules/netinstall/PackageModel.cpp index 2c07a55d0..629133c86 100644 --- a/src/modules/netinstall/PackageModel.cpp +++ b/src/modules/netinstall/PackageModel.cpp @@ -231,10 +231,11 @@ PackageModel::setupModelData( const YAML::Node& data, PackageTreeItem* parent ) item->setCritical( CalamaresUtils::yamlToVariant( itemDefinition["critical"] ).toBool() ); - for ( YAML::const_iterator packageIt = itemDefinition["packages"].begin(); - packageIt != itemDefinition["packages"].end(); ++packageIt ) - item->appendChild( - new PackageTreeItem( CalamaresUtils::yamlToVariant( *packageIt ).toString(), item ) ); + if ( itemDefinition["packages"] ) + for ( YAML::const_iterator packageIt = itemDefinition["packages"].begin(); + packageIt != itemDefinition["packages"].end(); ++packageIt ) + item->appendChild( + new PackageTreeItem( CalamaresUtils::yamlToVariant( *packageIt ).toString(), item ) ); if ( itemDefinition["subgroups"] ) setupModelData( itemDefinition["subgroups"], item );