From 6e5369bb7c0053e20d44ea8c5575afd730ae2c4e Mon Sep 17 00:00:00 2001 From: Pavel Siska Date: Mon, 30 Sep 2024 10:51:22 +0200 Subject: [PATCH] telemetry - AggregatedFile - check empty pattern processing --- src/telemetry/aggFile.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/telemetry/aggFile.cpp b/src/telemetry/aggFile.cpp index 7f662fd..481dcdd 100644 --- a/src/telemetry/aggFile.cpp +++ b/src/telemetry/aggFile.cpp @@ -123,6 +123,9 @@ Content AggregatedFile::read() } const auto files = getFilesMatchingPattern(m_filesRegexPattern, patternRootDir); + if (files.empty()) { + return content; + } std::vector fileContents; fileContents.reserve(files.size());