Author: raja
Date: 2005-02-25 06:32:59 -0500 (Fri, 25 Feb 2005)
New Revision: 41187

Modified:
   trunk/mcs/mcs/ChangeLog
   trunk/mcs/mcs/statement.cs
Log:
Fix #72924.
* statement.cs (ExpressionStatement.Resolve): Make robust to being
called twice in case of error.


Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog     2005-02-25 10:06:19 UTC (rev 41186)
+++ trunk/mcs/mcs/ChangeLog     2005-02-25 11:32:59 UTC (rev 41187)
@@ -1,3 +1,9 @@
+2005-02-25  Raja R Harinath  <[EMAIL PROTECTED]>
+
+       Fix #72924.
+       * statement.cs (ExpressionStatement.Resolve): Make robust to being
+       called twice in case of error.
+
 2005-02-23  Chris Toshok  <[EMAIL PROTECTED]>
 
        Fix compiler portions of #72827.

Modified: trunk/mcs/mcs/statement.cs
===================================================================
--- trunk/mcs/mcs/statement.cs  2005-02-25 10:06:19 UTC (rev 41186)
+++ trunk/mcs/mcs/statement.cs  2005-02-25 11:32:59 UTC (rev 41187)
@@ -530,7 +530,8 @@
 
                public override bool Resolve (EmitContext ec)
                {
-                       expr = expr.ResolveStatement (ec);
+                       if (expr != null)
+                               expr = expr.ResolveStatement (ec);
                        return expr != null;
                }
                

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

Reply via email to