From 6fafc52670d7bca82f9f84578f0e9b946b896184 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Wed, 27 Apr 2011 19:03:02 -0500 Subject: [PATCH] Guard against null native names. * glib/GType.cs: null guarding for native names --- glib/GType.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/glib/GType.cs b/glib/GType.cs index b1981b035..77e14f41d 100755 --- a/glib/GType.cs +++ b/glib/GType.cs @@ -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')