We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6225b53 commit 33f26eeCopy full SHA for 33f26ee
1 file changed
src/meta_process.hpp
@@ -65,7 +65,9 @@ namespace fb2k_ncm
65
if (json.is_number_integer()) {
66
n_ = json.get<uint64_t>();
67
} else if (json.is_string()) {
68
- n_ = std::stoull(json.get<std::string>());
+ if (auto &&s = json.get<std::string>(); !s.empty()) {
69
+ n_ = std::stoull(s);
70
+ }
71
}
72
73
explicit weak_typed_id(const std::string &s) : n_(0) {
0 commit comments