mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 05:25:31 +00:00
* ESCLParser.cs: Fixed a potential NullReferenceException.
This commit is contained in:
parent
794a742fcb
commit
8550af39d1
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue