Author: miguel
Date: 2005-02-27 17:55:23 -0500 (Sun, 27 Feb 2005)
New Revision: 41268

Modified:
   trunk/mcs/mcs/pending.cs
Log:
2005-02-27  Miguel de Icaza  <[EMAIL PROTECTED]>

        * pending.cs: Make the code resistant to errors.

Modified: trunk/mcs/mcs/pending.cs
===================================================================
--- trunk/mcs/mcs/pending.cs    2005-02-27 22:20:23 UTC (rev 41267)
+++ trunk/mcs/mcs/pending.cs    2005-02-27 22:55:23 UTC (rev 41268)
@@ -175,8 +175,14 @@
                                
                                int j = 0;
                                foreach (MethodInfo m in mi){
-                                       Type [] types = 
TypeManager.GetArgumentTypes (m);
+                                       Type [] types;
                                        
+                                       // If there is a previous error, just 
ignore
+                                       if (m == null)
+                                               types = TypeManager.NoTypes;
+                                       else
+                                               types = 
TypeManager.GetArgumentTypes (m);
+                                       
                                        pending_implementations [i].args [j] = 
types;
                                        j++;
                                }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to