mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
Guard against null native names.
* glib/GType.cs: null guarding for native names
This commit is contained in:
parent
3170916774
commit
6fafc52670
@ -159,6 +159,9 @@ namespace GLib {
|
||||
|
||||
static string GetQualifiedName (string cname)
|
||||
{
|
||||
if (string.IsNullOrEmpty (cname))
|
||||
return null;
|
||||
|
||||
for (int i = 1; i < cname.Length; i++) {
|
||||
if (System.Char.IsUpper (cname[i])) {
|
||||
if (i == 1 && cname [0] == 'G')
|
||||
|
Loading…
Reference in New Issue
Block a user