From 3d72c5bc42bbd1d7194ff274d2abdef7cbd6cf16 Mon Sep 17 00:00:00 2001 From: Daniel Palme Date: Mon, 3 Jun 2024 15:27:47 +0200 Subject: [PATCH] #676: Fixed issue with Cobertura files with empty class names --- src/Readme.txt | 4 ++++ src/ReportGenerator.Core/Parser/ClassNameParser.cs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Readme.txt b/src/Readme.txt index 21c96615..2393de84 100644 --- a/src/Readme.txt +++ b/src/Readme.txt @@ -67,6 +67,10 @@ For further details take a look at LICENSE.txt. CHANGELOG +5.3.6.0 + + * Fix: #676: Fixed issue with Cobertura files with empty class names + 5.3.5.0 * New: #663: Improved support for Cobertura files generated by "Microsoft CodeCoverage" diff --git a/src/ReportGenerator.Core/Parser/ClassNameParser.cs b/src/ReportGenerator.Core/Parser/ClassNameParser.cs index 653289fe..ca6c8f59 100644 --- a/src/ReportGenerator.Core/Parser/ClassNameParser.cs +++ b/src/ReportGenerator.Core/Parser/ClassNameParser.cs @@ -26,7 +26,7 @@ internal static class ClassNameParser /// The parser result. public static ClassNameParserResult ParseClassName(string rawName, bool rawMode) { - if (string.IsNullOrEmpty(rawName)) + if (rawName == null) { throw new ArgumentNullException(nameof(rawName)); }