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:
authorMarek Habersack <grendel@twistedcode.net>2012-11-30 13:59:01 +0400
committerMarek Habersack <grendel@twistedcode.net>2012-11-30 13:59:01 +0400
commit9f3ef8e4bac11601a2cf2670cbab337e6276103b (patch)
tree12778503592362e9e86325bac4007a51bea9e14a
parent084915587a20a1407424bbefbf7ed203277c9ed4 (diff)
parent3af50114d986e9ffcd1544aa7ff13f7472992687 (diff)
Merge pull request #498 from Unroll-Me/master
Fix HttpContextWrapper.Session when Session State is disabled
-rw-r--r--mcs/class/System.Web.Abstractions/System.Web/HttpContextWrapper.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System.Web.Abstractions/System.Web/HttpContextWrapper.cs b/mcs/class/System.Web.Abstractions/System.Web/HttpContextWrapper.cs
index 66e99f26106..22feb8530d7 100644
--- a/mcs/class/System.Web.Abstractions/System.Web/HttpContextWrapper.cs
+++ b/mcs/class/System.Web.Abstractions/System.Web/HttpContextWrapper.cs
@@ -127,7 +127,7 @@ namespace System.Web
}
public override HttpSessionStateBase Session {
- get { return new HttpSessionStateWrapper (w.Session); }
+ get { return w.Session == null ? null : new HttpSessionStateWrapper (w.Session); }
}
public override bool SkipAuthorization {