diff --git a/src/storm/cli/cli.cpp b/src/storm/cli/cli.cpp index caf3aa0c3..c84fce107 100644 --- a/src/storm/cli/cli.cpp +++ b/src/storm/cli/cli.cpp @@ -683,7 +683,9 @@ namespace storm { } else { filter = storm::api::verifyWithSparseEngine(sparseModel, storm::api::createTask(states, false)); } - result->filter(filter->asQualitativeCheckResult()); + if (result && filter) { + result->filter(filter->asQualitativeCheckResult()); + } return result; }); } @@ -703,8 +705,9 @@ namespace storm { } else { filter = storm::api::verifyWithHybridEngine(symbolicModel, storm::api::createTask(states, false)); } - - result->filter(filter->asQualitativeCheckResult()); + if (result && filter) { + result->filter(filter->asQualitativeCheckResult()); + } return result; }); } @@ -724,8 +727,9 @@ namespace storm { } else { filter = storm::api::verifyWithDdEngine(symbolicModel, storm::api::createTask(states, false)); } - - result->filter(filter->asQualitativeCheckResult()); + if (result && filter) { + result->filter(filter->asQualitativeCheckResult()); + } return result; }); }