summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-12-26 15:24:03 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2009-12-26 15:24:03 -0800
commite837dc89934f5bd49170587c902542425ca00f90 (patch)
tree7a7c4db1e1aae2d78d75bc2b9b88301a4f5175c3 /src
parente5d8eb410694645298df323315c1d5b63a7a18f8 (diff)
downloadDotNetOpenAuth-e837dc89934f5bd49170587c902542425ca00f90.zip
DotNetOpenAuth-e837dc89934f5bd49170587c902542425ca00f90.tar.gz
DotNetOpenAuth-e837dc89934f5bd49170587c902542425ca00f90.tar.bz2
Fixed NullReferenceException from reporting during unit tests.
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth.Test/App.config2
-rw-r--r--src/DotNetOpenAuth/OpenId/RelyingParty/PositiveAnonymousResponse.cs4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.Test/App.config b/src/DotNetOpenAuth.Test/App.config
index dafb99d..b3da723 100644
--- a/src/DotNetOpenAuth.Test/App.config
+++ b/src/DotNetOpenAuth.Test/App.config
@@ -49,6 +49,8 @@
</security>
</provider>
</openid>
+ <!-- We definitely do NOT want to report on events that happen while running tests. -->
+ <reporting enabled="false" />
</dotNetOpenAuth>
<system.diagnostics>
diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/PositiveAnonymousResponse.cs b/src/DotNetOpenAuth/OpenId/RelyingParty/PositiveAnonymousResponse.cs
index 7a1fbbf..6e7d7ef 100644
--- a/src/DotNetOpenAuth/OpenId/RelyingParty/PositiveAnonymousResponse.cs
+++ b/src/DotNetOpenAuth/OpenId/RelyingParty/PositiveAnonymousResponse.cs
@@ -45,7 +45,9 @@ namespace DotNetOpenAuth.OpenId.RelyingParty {
Logger.OpenId.Info("Received anonymous (identity-less) positive assertion.");
}
- Reporting.RecordEventOccurrence(this, response.ProviderEndpoint.AbsoluteUri);
+ if (response.ProviderEndpoint != null) {
+ Reporting.RecordEventOccurrence(this, response.ProviderEndpoint.AbsoluteUri);
+ }
}
#region IAuthenticationResponse Properties