Author: miguel
Date: 2007-12-11 23:48:09 -0500 (Tue, 11 Dec 2007)
New Revision: 91141

Modified:
   trunk/mcs/mcs/ChangeLog
   trunk/mcs/mcs/statement.cs
Log:
2007-12-12  Miguel de Icaza  <[EMAIL PROTECTED]>

        * statement.cs (Throw.CloneTo): it is valid to have empty
        expressions for throw. 

Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog     2007-12-12 04:48:02 UTC (rev 91140)
+++ trunk/mcs/mcs/ChangeLog     2007-12-12 04:48:09 UTC (rev 91141)
@@ -1,3 +1,8 @@
+2007-12-12  Miguel de Icaza  <[EMAIL PROTECTED]>
+
+       * statement.cs (Throw.CloneTo): it is valid to have empty
+       expressions for throw. 
+
 2007-12-03  Marek Safar  <[EMAIL PROTECTED]>
 
        * cs-parser.jay: Set delegate constraint parsing region correctly.

Modified: trunk/mcs/mcs/statement.cs
===================================================================
--- trunk/mcs/mcs/statement.cs  2007-12-12 04:48:02 UTC (rev 91140)
+++ trunk/mcs/mcs/statement.cs  2007-12-12 04:48:09 UTC (rev 91141)
@@ -1089,7 +1089,8 @@
                {
                        Throw target = (Throw) t;
 
-                       target.expr = expr.Clone (clonectx);
+                       if (expr != null)
+                               target.expr = expr.Clone (clonectx);
                }
        }
 

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

Reply via email to