diff options
author | Schabse Laks <Dev@SLaks.net> | 2012-11-05 21:49:36 +0400 |
---|---|---|
committer | Schabse Laks <Dev@SLaks.net> | 2012-11-05 21:49:36 +0400 |
commit | 3af50114d986e9ffcd1544aa7ff13f7472992687 (patch) | |
tree | b04b3ac566d89fe6f28233b1116394a537aceb83 | |
parent | 7f0edd4b3d700fa6757f455a2518f49d5221daba (diff) |
Fix null sessions in HttpContextWrapper.Session
-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 { |