2004-04-01 Mike Kestner <mkestner@ximian.com>

* glib/Value.cs : NULL check for g_value_get_string Thanks to Jeroen
	Zwartepoorte for the bug report with patch [fixes #54979].

svn path=/trunk/gtk-sharp/; revision=24910
This commit is contained in:
Mike Kestner 2004-04-01 17:10:27 +00:00
parent 65570cfc50
commit f445ce3b19
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-04-01 Mike Kestner <mkestner@ximian.com>
* glib/Value.cs : NULL check for g_value_get_string Thanks to Jeroen
Zwartepoorte for the bug report with patch [fixes #54979].
2004-03-31 Miguel de Icaza <miguel@ximian.com>
* configure.in: If monodoc is not found, then turn off

View File

@ -589,7 +589,8 @@ namespace GLib {
{
// FIXME: Insert an appropriate exception here if
// _val.type indicates an error.
return Marshal.PtrToStringAnsi (g_value_get_string (val._val));
IntPtr str = g_value_get_string (val._val);
return str == IntPtr.Zero ? null : Marshal.PtrToStringAnsi (str);
}
[DllImport("libgobject-2.0-0.dll")]