diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-08-04 07:14:45 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-08-04 07:14:45 -0700 |
commit | 80dfb94652ca9b0207026de87917885329e40ac5 (patch) | |
tree | fddbc19d99d375b3488a9dfcd4382d1705388dc6 | |
parent | a2ce1093e1cc8d50fbed4cca2263a5efe56d99bc (diff) | |
download | DotNetOpenAuth-80dfb94652ca9b0207026de87917885329e40ac5.zip DotNetOpenAuth-80dfb94652ca9b0207026de87917885329e40ac5.tar.gz DotNetOpenAuth-80dfb94652ca9b0207026de87917885329e40ac5.tar.bz2 |
Fixed failing UriIdentifier.ctor unit test.
-rw-r--r-- | src/DotNetOpenAuth/OpenId/UriIdentifier.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth/OpenId/UriIdentifier.cs b/src/DotNetOpenAuth/OpenId/UriIdentifier.cs index 5a757e0..4384367 100644 --- a/src/DotNetOpenAuth/OpenId/UriIdentifier.cs +++ b/src/DotNetOpenAuth/OpenId/UriIdentifier.cs @@ -69,7 +69,7 @@ namespace DotNetOpenAuth.OpenId { /// <param name="uri">The value this identifier will represent.</param> /// <param name="requireSslDiscovery">if set to <c>true</c> [require SSL discovery].</param> internal UriIdentifier(Uri uri, bool requireSslDiscovery) - : base(uri.OriginalString, requireSslDiscovery) { + : base(uri != null ? uri.OriginalString : null, requireSslDiscovery) { ErrorUtilities.VerifyArgumentNotNull(uri, "uri"); if (!TryCanonicalize(new UriBuilder(uri), out uri)) { throw new UriFormatException(); |