mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 16:45:27 +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 =>
|
Func<string, string> GetExtension = name =>
|
||||||
{
|
{
|
||||||
var ext = extensions.Match(name).Value;
|
var match = extensions.Match(name);
|
||||||
return String.IsNullOrEmpty(ext) ? "Core" : ext;
|
return match != null && String.IsNullOrEmpty(match.Value) ? "Core" : match.Value;
|
||||||
};
|
};
|
||||||
|
|
||||||
var words = line.Split(splitters, StringSplitOptions.RemoveEmptyEntries);
|
var words = line.Split(splitters, StringSplitOptions.RemoveEmptyEntries);
|
||||||
|
|
Loading…
Reference in a new issue