summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-03-09 14:16:03 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-03-09 15:07:30 -0700
commit077238c1c9b12a6485fbf4c335e1b49af0c6279f (patch)
tree61d2d8a538f0bebd656ad420df373f2abb45019d
parent4e9b7fcff826bb720036052032b8ec254f4e8593 (diff)
downloadDotNetOpenAuth-077238c1c9b12a6485fbf4c335e1b49af0c6279f.zip
DotNetOpenAuth-077238c1c9b12a6485fbf4c335e1b49af0c6279f.tar.gz
DotNetOpenAuth-077238c1c9b12a6485fbf4c335e1b49af0c6279f.tar.bz2
Fixed NullReferenceException thrown for http timeout exceptions.
-rw-r--r--src/DotNetOpenAuth/Messaging/StandardWebRequestHandler.cs4
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);
}