Explorar el Código

2004-07-11 Gonzalo Paniagua Javier <[email protected]>

	* debug-helpers.c: prevent SIGSEGV. It happened running xsp on monodoc
	when no HOME env. variable was set and a NullRef was thrown in a .cctor
	called from other .cctors.

svn path=/trunk/mono/; revision=30995
Gonzalo Paniagua Javier hace 21 años
padre
commit
6d95cf89e2
Se han modificado 2 ficheros con 7 adiciones y 1 borrados
  1. 6 0
      mono/metadata/ChangeLog
  2. 1 1
      mono/metadata/debug-helpers.c

+ 6 - 0
mono/metadata/ChangeLog

@@ -1,3 +1,9 @@
+2004-07-11 Gonzalo Paniagua Javier <[email protected]>
+
+	* debug-helpers.c: prevent SIGSEGV. It happened running xsp on monodoc
+	when no HOME env. variable was set and a NullRef was thrown in a .cctor
+	called from other .cctors.
+
 2004-07-09  Miguel de Icaza  <[email protected]>
 
 	* loader.c: Removed the mono_loader_wine_init hack now that we are

+ 1 - 1
mono/metadata/debug-helpers.c

@@ -500,7 +500,7 @@ mono_method_full_name (MonoMethod *method, gboolean signature)
 
 	nspace = method->klass->name_space;
 
-	if (signature) {
+	if (signature && method->signature) {
 		char *tmpsig = mono_signature_get_desc (method->signature, TRUE);
 
 		if (method->wrapper_type != MONO_WRAPPER_NONE)