Fix 055255aa5575b3eb6edb9a43fafbdabc76249bce. attr_klass can be NULL.
authorZoltan Varga <vargaz@gmail.com>
Tue, 11 Oct 2011 01:47:09 +0000 (03:47 +0200)
committerZoltan Varga <vargaz@gmail.com>
Tue, 11 Oct 2011 01:49:52 +0000 (03:49 +0200)
mono/mini/debugger-agent.c

index 2faca67fcaa97c93dea7c61c6312323eed3afa62..22bd9d5eed3e8fb54ae5743bc7510ba3e51e3c3d 100644 (file)
@@ -6517,7 +6517,8 @@ type_commands_internal (int command, MonoClass *klass, MonoDomain *domain, guint
                MonoCustomAttrInfo *cinfo;
 
                attr_klass = decode_typeid (p, &p, end, NULL, &err);
-               if (!attr_klass)
+               /* attr_klass can be NULL */
+               if (err)
                        return err;
 
                cinfo = mono_custom_attrs_from_class (klass);