diff --git a/glib/Value.cs b/glib/Value.cs index be45c5ca5..d6bc71e28 100644 --- a/glib/Value.cs +++ b/glib/Value.cs @@ -573,7 +573,7 @@ namespace GLib { internal void Update (object val) { - if (GType.Is (type, GType.Boxed) && !(val is IWrapper)) { + if (GType.Is (type, GType.Boxed) && val != null && !(val is IWrapper)) { MethodInfo mi = val.GetType ().GetMethod ("Update", BindingFlags.NonPublic | BindingFlags.Instance); IntPtr boxed_ptr = g_value_get_boxed (ref this);