diff options
author | Marek Habersack <grendel@twistedcode.net> | 2012-11-30 13:59:01 +0400 |
---|---|---|
committer | Marek Habersack <grendel@twistedcode.net> | 2012-11-30 13:59:01 +0400 |
commit | 9f3ef8e4bac11601a2cf2670cbab337e6276103b (patch) | |
tree | 12778503592362e9e86325bac4007a51bea9e14a | |
parent | 084915587a20a1407424bbefbf7ed203277c9ed4 (diff) | |
parent | 3af50114d986e9ffcd1544aa7ff13f7472992687 (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.cs | 2 |
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 { |