From 5f308e8e17ee1d225e8b4d0ca1a5500e6bb0fc3c Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 19 Mar 2019 06:15:11 -0400 Subject: [PATCH] [calamares] Check that a sequence has been set --- src/calamares/CalamaresApplication.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/calamares/CalamaresApplication.cpp b/src/calamares/CalamaresApplication.cpp index c9a171fd2..989290567 100644 --- a/src/calamares/CalamaresApplication.cpp +++ b/src/calamares/CalamaresApplication.cpp @@ -263,7 +263,12 @@ CalamaresApplication::initSettings() ::exit( EXIT_FAILURE ); } - new Calamares::Settings( settingsFile.absoluteFilePath(), isDebug(), this ); + auto* settings = new Calamares::Settings( settingsFile.absoluteFilePath(), isDebug(), this ); // Creates singleton + if ( settings->modulesSequence().count() < 1 ) + { + cError() << "FATAL: no sequence set."; + ::exit( EXIT_FAILURE ); + } }