* ESCLParser.cs: Fixed a potential NullReferenceException.

This commit is contained in:
the_fiddler 2009-08-03 21:41:55 +00:00
parent 794a742fcb
commit 8550af39d1

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);