mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-24 17:45:27 +00: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)
|
static string GetQualifiedName (string cname)
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrEmpty (cname))
|
||||||
|
return null;
|
||||||
|
|
||||||
for (int i = 1; i < cname.Length; i++) {
|
for (int i = 1; i < cname.Length; i++) {
|
||||||
if (System.Char.IsUpper (cname[i])) {
|
if (System.Char.IsUpper (cname[i])) {
|
||||||
if (i == 1 && cname [0] == 'G')
|
if (i == 1 && cname [0] == 'G')
|
||||||
|
|
Loading…
Reference in a new issue