diff --git a/Source/Converter/CHeaderToXML/ESCLParser.cs b/Source/Converter/CHeaderToXML/ESCLParser.cs index d1db3881..f9b128ad 100644 --- a/Source/Converter/CHeaderToXML/ESCLParser.cs +++ b/Source/Converter/CHeaderToXML/ESCLParser.cs @@ -164,8 +164,8 @@ namespace CHeaderToXML Func GetExtension = name => { - var ext = extensions.Match(name).Value; - return String.IsNullOrEmpty(ext) ? "Core" : ext; + var match = extensions.Match(name); + return match != null && String.IsNullOrEmpty(match.Value) ? "Core" : match.Value; }; var words = line.Split(splitters, StringSplitOptions.RemoveEmptyEntries);