Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2002-10-27 22:55:28 +0300
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2002-10-27 22:55:28 +0300
commit095823b134bc1f0b2cc8aa1ec5a55e6ec4148eba (patch)
tree3ee2c068c51fb5b6589c426244bb4606c26bc430 /mcs/class/System.Web/System.Web.Configuration/HttpHandlersSectionHandler.cs
parenta7e0a23e60eaa526bd70e0b545ff87ab62186cb1 (diff)
2002-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* list: added WebEncoding.cs * System.Web/HttpApplication.cs: reenabled a few lines of code (ThreadPool already fixed). * System.Web/HttpRequest.cs: * System.Web/HttpResponse.cs: * System.Web/HttpUtility.cs: * System.Web/HttpValueCollection.cs: * System.Web/HttpWriter.cs: * System.Web.UI/LosFormatter.cs: Use WebEncoding.Encoding. * System.Web.Compilation/PageCompiler.cs: tracing. * System.Web.Compilation/TemplateFactory.cs: cache compiled types and tracing. * System.Web.Compilation/WebServiceCompiler.cs: new parameter in GetTypeFromsource, * System.Web.Configuration/HttpHandlersSectionHandler.cs: more null checks. * System.Web.UI/Control.cs: * System.Web.UI/Page.cs: * System.Web.Util/WebTrace.cs: fixed namespace. * System.Web.Util/WebEncoding.cs: new class that holds the default encoding for System.Web. svn path=/trunk/mcs/; revision=8599
Diffstat (limited to 'mcs/class/System.Web/System.Web.Configuration/HttpHandlersSectionHandler.cs')
-rw-r--r--mcs/class/System.Web/System.Web.Configuration/HttpHandlersSectionHandler.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/mcs/class/System.Web/System.Web.Configuration/HttpHandlersSectionHandler.cs b/mcs/class/System.Web/System.Web.Configuration/HttpHandlersSectionHandler.cs
index 496d3ea6f70..83c042f2f28 100644
--- a/mcs/class/System.Web/System.Web.Configuration/HttpHandlersSectionHandler.cs
+++ b/mcs/class/System.Web/System.Web.Configuration/HttpHandlersSectionHandler.cs
@@ -38,7 +38,7 @@ namespace System.Web.Configuration
string name = child.Name;
if (name == "clear") {
- if (child.Attributes.Count != 0)
+ if (child.Attributes != null && child.Attributes.Count != 0)
HandlersUtil.ThrowException ("Unrecognized attribute", child);
mapper.Clear ();
@@ -60,7 +60,7 @@ namespace System.Web.Configuration
if (name == "add") {
string type = HandlersUtil.ExtractAttributeValue ("type", child);
- if (child.Attributes.Count != 0)
+ if (child.Attributes != null && child.Attributes.Count != 0)
HandlersUtil.ThrowException ("Unrecognized attribute", child);
HandlerItem item = new HandlerItem (verb, path, type, validate);
@@ -69,7 +69,7 @@ namespace System.Web.Configuration
}
if (name == "remove") {
- if (child.Attributes.Count != 0)
+ if (child.Attributes != null && child.Attributes.Count != 0)
HandlersUtil.ThrowException ("Unrecognized attribute", child);
if (validate && mapper.Remove (verb, path) == null)