* ESCLParser.cs: Fixed a potential NullReferenceException.

This commit is contained in:
the_fiddler 2009-08-03 21:41:55 +00:00
parent 11c81f525b
commit f11ca377be

View file

@ -164,8 +164,8 @@ namespace CHeaderToXML
Func<string, string> 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);