From 68f14c728a9aeb7afd8dd3514effb88e915efee9 Mon Sep 17 00:00:00 2001 From: dehnert Date: Tue, 19 Sep 2017 23:03:38 +0200 Subject: [PATCH] added missing check for existence of model --- src/storm-cli-utilities/model-handling.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storm-cli-utilities/model-handling.h b/src/storm-cli-utilities/model-handling.h index 620405689..82b809074 100644 --- a/src/storm-cli-utilities/model-handling.h +++ b/src/storm-cli-utilities/model-handling.h @@ -629,9 +629,9 @@ namespace storm { } else { std::shared_ptr model = buildPreprocessExportModelWithValueTypeAndDdlib(input, engine); - STORM_LOG_THROW(model->isSparseModel() || !storm::settings::getModule().isSoundSet(), storm::exceptions::NotSupportedException, "Forcing soundness is currently only supported for sparse models."); - if (model) { + STORM_LOG_THROW(model->isSparseModel() || !storm::settings::getModule().isSoundSet(), storm::exceptions::NotSupportedException, "Forcing soundness is currently only supported for sparse models."); + if (coreSettings.isCounterexampleSet()) { auto ioSettings = storm::settings::getModule(); generateCounterexamples(model, input);