diff --git a/src/storage/MaximalEndComponentDecomposition.cpp b/src/storage/MaximalEndComponentDecomposition.cpp index 0b9995c08..d977b54d0 100644 --- a/src/storage/MaximalEndComponentDecomposition.cpp +++ b/src/storage/MaximalEndComponentDecomposition.cpp @@ -65,7 +65,9 @@ namespace storm { // Initialize the maximal end component list to be the full state space. std::list endComponentStateSets; - endComponentStateSets.emplace_back(subsystem.begin(), subsystem.end()); + if(!subsystem.empty()) { + endComponentStateSets.emplace_back(subsystem.begin(), subsystem.end()); + } storm::storage::BitVector statesToCheck(numberOfStates); // The iterator used here should really be a const_iterator.