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:
authorSchabse Laks <Dev@SLaks.net>2012-11-05 21:49:36 +0400
committerSchabse Laks <Dev@SLaks.net>2012-11-05 21:49:36 +0400
commit3af50114d986e9ffcd1544aa7ff13f7472992687 (patch)
treeb04b3ac566d89fe6f28233b1116394a537aceb83 /mcs/class/System.Web.Abstractions
parent7f0edd4b3d700fa6757f455a2518f49d5221daba (diff)
Fix null sessions in HttpContextWrapper.Session
Diffstat (limited to 'mcs/class/System.Web.Abstractions')
-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 {