Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make sure that we never have a 0 transition at the end of the stack
[simgrid.git] / src / mc / explo / LivenessChecker.cpp
index 071c1e4..1cd4388 100644 (file)
@@ -289,7 +289,8 @@ std::vector<std::string> LivenessChecker::get_textual_trace() // override
 {
   std::vector<std::string> trace;
   for (std::shared_ptr<Pair> const& pair : exploration_stack_)
-    trace.push_back(pair->app_state_->get_transition()->to_string());
+    if (pair->app_state_->get_transition() != nullptr)
+      trace.push_back(pair->app_state_->get_transition()->to_string());
 
   return trace;
 }