diff --git a/src/common/CvtFormat.cpp b/src/common/CvtFormat.cpp index ee675eb000..3ceb1c256e 100644 --- a/src/common/CvtFormat.cpp +++ b/src/common/CvtFormat.cpp @@ -249,6 +249,9 @@ namespace constexpr Format::Patterns mapFormatStrToFormatPattern(std::string_view pattern) { + if (pattern.empty()) + return Format::NONE; + switch (pattern[0]) { case 'Y':