Browse Source

2003-08-03 Gonzalo Paniagua Javier <[email protected]>

	* AspGenerator.cs: fixed bug #46429.

svn path=/trunk/mcs/; revision=17023
Gonzalo Paniagua Javier 22 years ago
parent
commit
213c1f706e

+ 7 - 1
mcs/class/System.Web/System.Web.Compilation/AspGenerator.cs

@@ -87,7 +87,13 @@ namespace System.Web.Compilation
 				return null;
 
 			files.Remove (current.Filename);
-			return (AspParser) parsers.Pop ();
+			AspParser result = (AspParser) parsers.Pop ();
+			if (parsers.Count > 0)
+				current = (AspParser) parsers.Peek ();
+			else
+				current = null;
+
+			return result;
 		}
 		
 		public AspParser Parser {

+ 4 - 0
mcs/class/System.Web/System.Web.Compilation/ChangeLog

@@ -1,3 +1,7 @@
+2003-08-03  Gonzalo Paniagua Javier <[email protected]>
+
+	* AspGenerator.cs: fixed bug #46429.
+
 2003-08-01  Gonzalo Paniagua Javier <[email protected]>
 
 	* Directive.cs: support @WebHandler.