Skip to content

Commit

Permalink
Merge pull request mono#498 from Unroll-Me/master
Browse files Browse the repository at this point in the history
Fix HttpContextWrapper.Session when Session State is disabled
  • Loading branch information
grendello committed Nov 30, 2012
2 parents 0849155 + 3af5011 commit 9f3ef8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public override HttpServerUtilityBase Server {
}

public override HttpSessionStateBase Session {
get { return new HttpSessionStateWrapper (w.Session); }
get { return w.Session == null ? null : new HttpSessionStateWrapper (w.Session); }
}

public override bool SkipAuthorization {
Expand Down

0 comments on commit 9f3ef8e

Please sign in to comment.