diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOpenAuth/Messaging/StandardWebRequestHandler.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth/Messaging/StandardWebRequestHandler.cs b/src/DotNetOpenAuth/Messaging/StandardWebRequestHandler.cs index fd099f2..c13fef5 100644 --- a/src/DotNetOpenAuth/Messaging/StandardWebRequestHandler.cs +++ b/src/DotNetOpenAuth/Messaging/StandardWebRequestHandler.cs @@ -168,7 +168,9 @@ namespace DotNetOpenAuth.Messaging { // If in the future, some callers actually want to read this response // we'll need to figure out how to reliably call Close on exception // responses at all callers. - response.Close(); + if (response != null) { + response.Close(); + } throw ErrorUtilities.Wrap(ex, MessagingStrings.ErrorInRequestReplyMessage); } |