Guard against null native names.
* glib/GType.cs: null guarding for native names
This commit is contained in:
parent
3170916774
commit
6fafc52670
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue