diff --git a/src/common/model/path.h b/src/common/model/path.h index 9846f268..1790fc1c 100644 --- a/src/common/model/path.h +++ b/src/common/model/path.h @@ -128,7 +128,13 @@ public: } } - void pop_back() { path_.pop_back(); } + void pop_back() + { + if (!path_.empty()) + { + path_.pop_back(); + } + } std::optional parent() const {