Author: martin
Date: 2006-03-23 12:14:41 -0500 (Thu, 23 Mar 2006)
New Revision: 58366
Modified:
trunk/mcs/gmcs/attribute.cs
Log:
Don't crash here if we don't find any ctors.
Modified: trunk/mcs/gmcs/attribute.cs
===================================================================
--- trunk/mcs/gmcs/attribute.cs 2006-03-23 17:09:18 UTC (rev 58365)
+++ trunk/mcs/gmcs/attribute.cs 2006-03-23 17:14:41 UTC (rev 58366)
@@ -371,6 +371,9 @@
BindingFlags.Public | BindingFlags.Instance |
BindingFlags.DeclaredOnly,
Location);
+ if (mg == null)
+ return null;
+
MethodBase constructor = Invocation.OverloadResolve (
ec, (MethodGroupExpr) mg, PosArguments, false,
Location);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches