Author: ankit
Date: 2006-02-19 09:49:12 -0500 (Sun, 19 Feb 2006)
New Revision: 57046

Modified:
   trunk/mcs/ilasm/codegen/ChangeLog
   trunk/mcs/ilasm/codegen/ExternTable.cs
Log:
* ExternTable.cs (ExternTable.GetModuleTypeRef): 'module_table' can be
null.


Modified: trunk/mcs/ilasm/codegen/ChangeLog
===================================================================
--- trunk/mcs/ilasm/codegen/ChangeLog   2006-02-19 13:59:36 UTC (rev 57045)
+++ trunk/mcs/ilasm/codegen/ChangeLog   2006-02-19 14:49:12 UTC (rev 57046)
@@ -1,5 +1,10 @@
 2006-02-19  Ankit Jain  <[EMAIL PROTECTED]>
 
+       * ExternTable.cs (ExternTable.GetModuleTypeRef): 'module_table' can be
+       null.
+
+2006-02-19  Ankit Jain  <[EMAIL PROTECTED]>
+
        * CodeGen.cs (CodeGen.Write): Use only filename as the name of the
        module.
        * TypeDef.cs (TypeDef.ResolveAsMethodRef): New.

Modified: trunk/mcs/ilasm/codegen/ExternTable.cs
===================================================================
--- trunk/mcs/ilasm/codegen/ExternTable.cs      2006-02-19 13:59:36 UTC (rev 
57045)
+++ trunk/mcs/ilasm/codegen/ExternTable.cs      2006-02-19 14:49:12 UTC (rev 
57046)
@@ -336,8 +336,9 @@
 
                 public ExternTypeRef GetModuleTypeRef (string mod_name, string 
full_name, bool is_valuetype)
                 {
-                        ExternModule mod;
-                        mod = module_table [mod_name] as ExternModule;
+                        ExternModule mod = null;
+                        if (module_table != null)
+                                mod = module_table [mod_name] as ExternModule;
 
                         if (mod == null)
                                 throw new Exception (String.Format ("Module 
{0} not defined.", mod_name));

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

Reply via email to