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 / mc_record.cpp
index a16898e..f639107 100644 (file)
@@ -98,6 +98,8 @@ std::string simgrid::mc::RecordTrace::to_string() const
 {
   std::ostringstream stream;
   for (auto i = transitions_.begin(); i != transitions_.end(); ++i) {
+    if (*i == nullptr)
+      continue;
     if (i != transitions_.begin())
       stream << ';';
     stream << (*i)->aid_;