Author: kostat
Date: 2007-02-28 07:57:04 -0500 (Wed, 28 Feb 2007)
New Revision: 73539
Modified:
trunk/mcs/class/System.Web/System.Web.UI/TemplateControl.jvm.cs
Log:
Add extra null check to workaround an issue
Modified: trunk/mcs/class/System.Web/System.Web.UI/TemplateControl.jvm.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/TemplateControl.jvm.cs
2007-02-28 12:51:13 UTC (rev 73538)
+++ trunk/mcs/class/System.Web/System.Web.UI/TemplateControl.jvm.cs
2007-02-28 12:57:04 UTC (rev 73539)
@@ -165,7 +165,7 @@
foreach (string methodName in methodNames) {
MethodInfo method = null;
Type type;
- for (type = GetType (); type.Assembly !=
_System_Web_Assembly; type = type.BaseType) {
+ for (type = GetType (); type != null &&
type.Assembly != _System_Web_Assembly; type = type.BaseType) {
method = type.GetMethod (methodName,
bflags);
if (method != null)
break;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches