Skip to content

Commit 231c4ce

Browse files
committed
Fix issue with empty values
1 parent a3a24ae commit 231c4ce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/overview.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ void add_recap_line(std::vector<std::vector<std::string>>& contents, const std::
100100

101101
total_line.emplace_back("");
102102
total_line.push_back(title);
103-
total_line.push_back(to_string(functor(values.front())));
103+
if (values.empty()) {
104+
total_line.emplace_back("N/A");
105+
} else {
106+
total_line.push_back(to_string(functor(values.front())));
107+
}
104108

105109
for(size_t i = 1; i < values.size(); ++i){
106110
total_line.emplace_back("");

0 commit comments

Comments
 (0)